您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
tRemove ad-blocker
// ==UserScript== // @name La Presse ad-blocker remover // @namespace http://tampermonkey.net/ // @version 0.2 // @description tRemove ad-blocker // @author woodspire // @match http://lapresse.ca/* // @match https://lapresse.ca/* // @match http://www.lapresse.ca/* // @match https://www.lapresse.ca/* // @grant none // ==/UserScript== (function() { 'use strict'; var func = (function() { console.log('remove lapresse ad-blocker detector'); var closeButton = document.querySelectorAll('.fc-ab-root .fc-close'); if (closeButton.length) { closeButton[0].click(); } console.log('remove lapresse ad-blocker'); var footers = document.getElementsByClassName("brz_msg_wall_body"); if (footers.length) { console.log('removing footer blocker'); footers[0].parentElement.remove(); document.body.style.overflow = ''; } var message = document.querySelectorAll('*[id^="sp_message_id"]'); if (message) { var btn = document.getElementById('Fermer'); if (btn) { console.log('removing message'); btn.click(); } } }); setTimeout(func, 1500); })();