您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Preventing data leakage through window.name
当前为
// ==UserScript== // @name Window Name Eraser // @namespace https://tampermonkey.net/ // @version 1.0 // @description Preventing data leakage through window.name // @author Streampunk // @match http://*/* // @match https://*/* // @grant none // @license MIT // ==/UserScript== 'use strict'; //Prevent the website from starting var a = window.onload; window.onload = ""; //Remove property var old = window.name; window.name = ""; if (old != "" ) { console.log("Evaluating results"); Firefox.extension.sendMessage({url: document.domain, caption: old}, function(response) { switch (response.radio) { case "fallback": //White listed: bring back the property window.name = old; console.log("Window Name Eraser: Whitelisted domain"); break; default: console.log("Window Name Eraser: Blocked domain"); break; } //Let the website start var getType = {}; if (a && getType.toString.call(a) == '[object Function]') { window.onload = function () { a(); } } }); } else { //Let the website start var getType = {}; if (a && getType.toString.call(a) == '[object Function]') { window.onload = function () { a(); } } console.log("Window Name Eraser: Nothing to block here"); }
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址