Window Name Eraser

Preventing data leakage through window.name

Versione datata 11/03/2023. Vedi la nuova versione l'ultima versione.

Dovrai installare un'estensione come Tampermonkey, Greasemonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Userscripts per installare questo script.

Dovrai installare un'estensione come ad esempio Tampermonkey per installare questo script.

Dovrai installare un gestore di script utente per installare questo script.

(Ho già un gestore di script utente, lasciamelo installare!)

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

(Ho già un gestore di stile utente, lasciamelo installare!)

// ==UserScript==
// @name         Window Name Eraser
// @namespace    https://tampermonkey.net/
// @version      1.2
// @description  Preventing data leakage through window.name
// @author       Streampunk
// @match        http://*/*
// @match        https://*/*
// @exclude      https://www.google.com/recaptcha/api2/*
// @exclude      https://google.com/recaptcha/api2/*
// @exclude      https://www.google.com/recaptcha/enterprise/*
// @exclude      https://google.com/recaptcha/enterprise/*
// @exclude      https://www.recaptcha.net/recaptcha/api2/*
// @exclude      https://recaptcha.net/recaptcha/api2/*
// @exclude      https://www.recaptcha.net/recaptcha/enterprise/*
// @exclude      https://recaptcha.net/recaptcha/enterprise/*
// @exclude      https://mail.proton.me/*
// @exclude      https://webmail.vivaldi.net/*
// @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");
 }