你正在訪問的內容是外部程式的映像位址,僅用於使用者加速訪問,本站無法保證其可靠性。當前的連結位址(單點即可複製)為 https://greasyfork.org.cn/zh-CN/scripts/38016-hijack-worker,源站連結 點此以跳轉

Hijack Worker

Hijack web workers in the browser to stop coin miner



點此查看下載連結位址https://update.greasyfork.org.cn/scripts/38016/Hijack%20Worker.user.js

安装此脚本?
作者
eight
日安装量
0
总安装量
302
评分
2 0 0
版本
0.2.0
创建于
2018-01-31
更新于
2018-01-31
大小
2.3 KB
许可证
MIT
适用于
所有网站

Hijack Worker

Hijack web workers in the browser to stop coin miner.

Try this script on MDN's simple worker page: http://mdn.github.io/simple-web-worker/

Features

  • Hijack browser's Worker/SharedWorker and ask the user whether to allow them.
  • Blacklist/whitelist to always block/allow the worker.

Installation

Compat notes

  • This script needs to be executed before other scripts.
  • There is no userscript manager which can ensure that the userscript is always executed before page scripts.
  • If you are using Tampermonkey, you can change "Config mode" to "Advanced" then change "Inject Mode" to "Instant" in the settings, so the script would be executed faster.
  • See hijack-worker-extension for a better solution.

Changelog

  • 0.2.0 (Jan 31, 2018)

    • Add: location.href to confirm message.
    • Remove: page script validation is not reliable.
  • 0.1.0 (Jan 30, 2018)

    • First release.