您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
rimuove Sponsoredon right Facebook
当前为
// ==UserScript== // @name Facebook Block Sponsored figuccio // @namespace https://gf.qytechs.cn/users/237458 // @version 0.1 // @author figuccio // @description rimuove Sponsoredon right Facebook // @match https://*.facebook.com/* // @run-at document-start // @icon https://facebook.com/favicon.ico // @license MIT // ==/UserScript== (function () { let xpath = function (xpathToExecute) { let result = []; let nodesSnapshot = document.evaluate(xpathToExecute, document, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null); for (let i = 0; i < nodesSnapshot.snapshotLength; i++) { result.push(nodesSnapshot.snapshotItem(i)); } return result; }; //9settembre 2022 let thePath = "//div[1]/div[1]/div/div[3]/div/div/div/div[1]/div[1]/div/div[3]/div/div/div[1]/div/div[1]/span/div/div"; let runCount; let intv = 500; // Esegui ogni 0,5 secondi let intvEnd = 5000; // Cancella dopo 5 secondi let go = setInterval(pollDOM, intv); function pollDOM() { runCount += intv; // Aggiungi il valore intv a runCount ogni volta per contare la quantità di ms eseguiti if (runCount >= intvEnd) { //Cancella intervallo dopo intvEnd clearInterval(go); } try { if (xpath(thePath)[0].children[0].children.length) { xpath(thePath)[0].children[0].remove(); } } catch {} } })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址