您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Bypasses TvaNouvelle adblock detection by simpy deleting some elements (use Ublock Origin as it bypasses it and this just makes the page better)
// ==UserScript== // @name TvaNouvelle Bypass Ad Detection // @namespace http://tampermonkey.net/ // @version 1.5 // @description Bypasses TvaNouvelle adblock detection by simpy deleting some elements (use Ublock Origin as it bypasses it and this just makes the page better) // @author You // @match https://www.tvanouvelles.ca/* // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; var xpathsToDelete = [ "/html/body/div[4]", '//*[@id="myTopBarSticky"]/div[1]' ]; xpathsToDelete.forEach(function(xpath) { var targetElement = document.evaluate(xpath, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue; if (targetElement) { targetElement.remove(); } }); var consoleSnippet = '$("body").css({"overflow":"visible"});'; var script = document.createElement('script'); script.textContent = consoleSnippet; document.body.appendChild(script); })();