您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Removes the New York Times paywall
当前为
// ==UserScript== // @name New York Times Paywall Bypass // @namespace https://github.com/deelawn/user-scripts // @version 0.3 // @description Removes the New York Times paywall // @author deelawn // @include /^http(s?)://((www\.)?)nytimes\.com(.*)?/\d\d\d\d/(.+)$/ // @grant none // ==/UserScript== var lastDiv = ""; var myTimer = setInterval( function () { 'use strict'; var articleDiv = document.getElementById("main"); if (articleDiv == null){ return; }else{ articleDiv = articleDiv.outerHTML; } if (articleDiv.length > lastDiv.length){ return; } articleDiv = lastDiv; if (document.getElementById("gatewayCreative") == null){ return; } for(var i=0;i<999;i++){clearInterval(i);} document.getElementById("gatewayCreative").outerHTML=""; document.querySelector("body").style.overflow = "visible"; document.querySelector("html").style.overflow = "visible"; document.getElementById("main").outerHTML=articleDiv; }, 100);