您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Not exactly the best it could be, but with other ad blocking plugins it's good
// ==UserScript== // @name BDSMLR AD Remover // @namespace Violentmonkey Scripts // @match https://*.bdsmlr.com/* // @grant GM_addStyle // @version 1.1 // @author ElonGates // @license MIT // @description Not exactly the best it could be, but with other ad blocking plugins it's good // ==/UserScript== let lastScroll = $('.infscroll:last').data('id'); $(window).scroll(runScroll) { $('.products.columns-2').remove() $('.BDSMLR_Sidebar_ATF_Desktop_300x250').parentElement.remove() } let adText = "Here's an ad" function runScroll() { if ($(window).scrollTop() >= ($(document).height() - $(window).height()) - 700) { lastScroll = $('.infscroll:last').data('id'); let aElements = $('a') for (let i = 0; i < aElements.length; i++) { if (aElements[i].innerHTML.indexOf(adText) !== -1) { aElements[i].parentElement.parentElement.parentElement.parentElement.remove() } } } }