您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Removes ads and hides divs based on keywords
// ==UserScript== // @name kijiji.ca Sanitizer // @namespace kijiji sanitizer // @author lobo // @version 1.4.6 // @include https://*.kijiji.ca/* // @include http://*.kijiji.ca/* // @grant none // @description Removes ads and hides divs based on keywords // @grant GM_addStyle // ==/UserScript== $('.third-party').css('display', 'none'); $('#AdsenseTop').css('display', 'none'); $('div#InlineBanner').css('display', 'none'); $('[data-fes-id="admarktTopSpot"]').css('display', 'none'); $('.top-feature').css('display', 'none'); //top-ads-top-bar $('.top-ads-top-bar').css('display', 'none'); //srp-bottom-links $('.srp-bottom-links').css('display', 'none'); //kill ebay $(".fes-pagelet > [data-fes-id*='Tree']").css('display', 'none'); //add your words to this array - lower case only. Back up your words as they will reset if the script updates var array = [ "pomerleau", "uniway", "cashopolis" ]; $('.description p').each(function() { var ourText = $(this).text().toLowerCase(); // convert text to Lowercase if( (new RegExp( '\\b' + array.join('\\b|\\b') + '\\b') ).test(ourText) ) { $(this).parents().eq(2).css('display', 'none'); } });