您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Remove startup paywall window
// ==UserScript== // @name Washington Post Paywall remover // @version 0.0.2 // @author pp // @description Remove startup paywall window // @include https://www.washingtonpost.com/* // @grant none // @license MIT // @namespace https://greasyfork.org/users/814032 // ==/UserScript== (function() { 'use strict'; var WPPR = { mutas: function(m) { if (m.type == 'attributes' && m.target.tagName == 'BODY') { m.target.style.overflow = 'auto'; } if (m.type == 'childList') { m.addedNodes.forEach(function(node) { if (node.tagName == 'DIV' && node.id.match(/paywall\-intl\-*/)) { node.parentNode.removeChild(node); console.log('WP Paywall removed'); } }); } }, run: function() { var observer = new MutationObserver(function(mutations) { return mutations.forEach(WPPR.mutas); }); observer.observe(document.querySelector('body'), { childList: true, subtree: true, attributes: true, characterData: false }); setTimeout(function() { observer.disconnect(); }, 2000); } }; WPPR.run(); })();