您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Lets you read Aftenposten.no for free
// ==UserScript== // @name Aftenposten read limit remover // @namespace Danielv123 // @version 1.0 // @description Lets you read Aftenposten.no for free // @author You // @match http://www.aftenposten.no/* // @grant none // ==/UserScript== function eraseCookie (cookieName) { //--- ONE-TIME INITS: //--- Set possible domains. Omits some rare edge cases.?. var domain = document.domain; var domain2 = document.domain.replace (/^www\./, ""); var domain3 = document.domain.replace (/^(\w+\.)+?(\w+\.\w+)$/, "$2");; //--- Get possible paths for the current page: var pathNodes = location.pathname.split ("/").map ( function (pathWord) { return '/' + pathWord; } ); var cookPaths = [""].concat (pathNodes.map ( function (pathNode) { if (this.pathStr) { this.pathStr += pathNode; } else { this.pathStr = "; path="; return (this.pathStr + pathNode); } return (this.pathStr); } ) ); ( eraseCookie = function (cookieName) { //--- For each path, attempt to delete the cookie. cookPaths.forEach ( function (pathStr) { //--- To delete a cookie, set its expiration date to a past value. var diagStr = cookieName + "=" + pathStr + "; expires=Thu, 01-Jan-1970 00:00:01 GMT;"; document.cookie = diagStr; document.cookie = cookieName + "=" + pathStr + "; domain=" + domain + "; expires=Thu, 01-Jan-1970 00:00:01 GMT;"; document.cookie = cookieName + "=" + pathStr + "; domain=" + domain2 + "; expires=Thu, 01-Jan-1970 00:00:01 GMT;"; document.cookie = cookieName + "=" + pathStr + "; domain=" + domain3 + "; expires=Thu, 01-Jan-1970 00:00:01 GMT;"; } ); } ) (cookieName); } var cookieList = document.cookie.split (/;\s*/); for (var J = cookieList.length - 1; J >= 0; --J) { var cookieName = cookieList[J].replace (/\s*(\w+)=.+$/, "$1"); eraseCookie (cookieName); }
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址