您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Blocks popunder ads on nhentai
当前为
// ==UserScript== // @name nhentai block popunders // @namespace sayixz01icji0pgmio1f4ayoth4vpuj2 // @description Blocks popunder ads on nhentai // @license MIT License // @match *://*.nhentai.net/* // @version 1.1 // @grant none // @run-at document-start // ==/UserScript== /* jshint bitwise: true, curly: true, eqeqeq: true, esversion: 6, funcscope: false, futurehostile: true, latedef: true, noarg: true, nocomma: true, nonbsp: true, nonew: true, notypeof: false, shadow: outer, singleGroups: true, strict: true, undef: true, unused: true, varstmt: true, browser: true */ (function () { "use strict"; const HOUR = 60 * 60 * 1000; // Next popunder in 2h function killPopunders() { const key = "popunder_state"; let state; try { let savedState = localStorage.getItem(key); if (savedState) { state = JSON.parse(savedState); } } catch (ignore) {} if (!state) { state = {}; } state.lock_until = Date.now() + 2 * HOUR; try { localStorage.setItem(key, JSON.stringify(state)); } catch (ignore) {} } killPopunders(); // Call this again every hour just to make sure setInterval(killPopunders, HOUR); })();