checkbox sfoca chat figuccio

casella di controllo anti spioni

当前为 2023-11-25 提交的版本,查看 最新版本

// ==UserScript==
// @name          checkbox sfoca chat figuccio
// @namespace     https://gf.qytechs.cn/users/237458
// @version       0.4
// @description   casella di controllo anti spioni
// @author        figuccio
// @match         https://*.facebook.com/*
// @require       http://code.jquery.com/jquery-latest.js
// @grant         GM_setValue
// @grant         GM_getValue
// @grant         GM_addStyle
// @grant         GM_registerMenuCommand
// @icon          https://facebook.com/favicon.ico
// @noframes
// @license        MIT
// ==/UserScript==
function FunctionCheckbox() {
document.getElementById("showHideButton").click();
}
GM_registerMenuCommand("sfoca/on-off",FunctionCheckbox);

  GM_addStyle(`
      #showHideButton{cursor:pointer;}

      input[type=checkbox] {accent-color:red;}

      [type=checkbox]:after {
      content: attr(value);
      margin: -2px 19px;
      vertical-align: top;
      display: inline-block;
      white-space:nowrap;
      color:lime;
}

    `);
$(document).ready(function() {
$('body').append('<input type="checkbox" value="sfoca" id="showHideButton"  title="Sfoca" style="background-color:; color:;">');
$("#showHideButton").css({"position":"fixed", "top":15, "left":320, "z-index":1000, "border-style":"solid", "border-width":"2px", "border-color":"red"});

        function blurContacts() {
        const contactList = document.querySelector(".xwib8y2 ul");
        var checkbox = document.getElementById("showHideButton");
        checkbox.checked = true; //casella attivata
        function toggleBlur() {
        if (checkbox.checked) {contactList.style.filter ="blur(7px)";document.getElementById("showHideButton").value = "Show Chat";}
        else {contactList.style.filter =""; document.getElementById("showHideButton").value = "Hide Chat";}

        }

         //Aggiungi il listener di eventi alla casella di controllo
         checkbox.addEventListener("change", toggleBlur);
         toggleBlur()
        }
 setTimeout(blurContacts, 300);
 setTimeout(blurContacts, 9000);//ripetere
/////////////////////////////////////////////////////////////
})();

QingJ © 2025

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