您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
foo
// ==UserScript== // @name TorLook Timer Zap // @namespace http://tampermonkey.net/ // @version 0.3 // @description foo // @author BlankedyBlank // @license GNU GPLv3 // @match https://*.torlook.info/* // @grant none // ==/UserScript== function killTimer() { 'use strict'; let t = document.getElementsByClassName('fancybox-is-open') if (t.length === 1) { for (let e of document.scripts) { if (e.outerText.includes("magnet:?")) { const url = e.outerText.match((/<a href='(magnet:\?.*)'>Download<\/a>/))[1] window.open(url) t[0].remove() document.body.setAttribute("style", "overflow:auto;") } } } } // I don't know how MutationObservers work window.addEventListener('DOMNodeInserted', killTimer)