您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Removes ads and paywall on The Epoch Times.
当前为
// ==UserScript== // @name The Epoch Times - Ads & Paywall Removal // @namespace The Epoch Times - Ads & Paywall Removal // @version 0.1 // @description Removes ads and paywall on The Epoch Times. // @author asheroto // @license MIT // @match https://www.theepochtimes.com/* // @icon https://www.theepochtimes.com/favicon.ico // @grant GM_addElement // @grant GM_log // ==/UserScript== // ==OpenUserScript== // @author asheroto // ==/OpenUserScript== /* jshint esversion: 6 */ (function () { // Remove via CSS let css = ` #landing-page { display: none; } .home-wall { display: none; } #main { overflow: unset !important; height: unset !important; } #main > div { border-top: unset; margin-top: 0px; } .right_col.noprint > div { margin: unset !important; } .top_ad { display: none; } #ad_right_top_300x250_1 { display: none; } .login_wrapper { display: none; } #partnership { display: none; } #footer { display: block !important; } `; let head = document.head || document.getElementsByTagName("head")[0], style = document.createElement("style"); head.appendChild(style); style.appendChild(document.createTextNode(css)); // Run tag removal const blacklist = ["doubleclick.", "amazon-adsystem", "adnxs", "ads."]; const tags = ["script", "iframe"]; let repeat = setInterval(function () { tags.forEach(function (item) { document.getElementsByTagName(item).forEach(function (src) { blacklist.forEach(function (b) { if (src.src.includes(b)) { src.style.display = "none"; console.log(src.src); } }); }); }); }, 500); // Clear tag removal after 5 seconds setTimeout(function () { clearInterval(repeat); }, 5000); })();