checkbox sfoca chat figuccio

casella di controllo anti spioni

目前為 2023-09-27 提交的版本,檢視 最新版本

// ==UserScript==
// @name          checkbox sfoca chat figuccio
// @namespace     https://gf.qytechs.cn/users/237458
// @version       0.2
// @description   casella di controllo anti spioni
// @author        figuccio
// @match         https://*.facebook.com/*
// @grant         GM_addStyle
// @grant         GM_registerMenuCommand
// @icon          https://facebook.com/favicon.ico
// @noframes
// @license        MIT
// ==/UserScript==
function FunctionCheckbox() {
document.getElementById("blurCheckbox").click();
}
GM_registerMenuCommand("sfoca/on-off",FunctionCheckbox);
////////////////////////////////////////////////////////////////
var checkbox = document.createElement("input");
checkbox.type = 'checkbox';
checkbox.setAttribute('style',"position:fixed;top:80px;right:200px;");
checkbox.id = "blurCheckbox";
checkbox.title="Sfoca chat";
checkbox.style.cursor = 'pointer';
document.body.appendChild(checkbox);
/////////////////////////////////////////////////////////////////////////////////
var span = document.createElement('span');
// Setup the label
var label = document.createElement('label');
label.setAttribute('style',"position:fixed;top:80px;right:130px;color:red;background:aquamarine;");
label.innerHTML = "Sfoca Chat";
label.htmlFor = "blurCheckbox";
label.style.cursor = 'pointer';
label.title="Sfoca chat";


span.appendChild(label);
document.body.appendChild(span);
///////////////////////////////////////////////////////////////
const contactList = document.querySelector(".xwib8y2 ul");

  function toggleBlur() {
                if (checkbox.checked) {
                    contactList.style.filter = "blur(7px)";
                } else {
                    contactList.style.filter = "";
                }
            }

            //Aggiungi il listener di eventi alla casella di controllo
            checkbox.addEventListener("change", toggleBlur);
            
            
            

QingJ © 2025

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