TorLook Timer Zap

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)

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址