您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Removes all "Ad" and "You may also like" items from autotrader.co.uk search results
// ==UserScript== // @name Autotrader UK - remove ads from search results // @namespace https://autotrader.co.uk // @version 0.1 // @description Removes all "Ad" and "You may also like" items from autotrader.co.uk search results // @author Steve Chambers // @license MIT // @match https://www.autotrader.co.uk/* // @icon https://www.google.com/s2/favicons?sz=64&domain=autotrader.co.uk // ==/UserScript== (function() { 'use strict'; // Function to remove the targeted <li> elements function removeTargetedListItems() { document.querySelectorAll('li').forEach(li => { if (li.querySelector('span')?.textContent.trim() === 'Ad' || li.querySelector('span')?.textContent.trim() === 'You may also like') { li.remove(); } }); } // Run the function on page load removeTargetedListItems(); // Observe the DOM for dynamically loaded content const observer = new MutationObserver(() => { removeTargetedListItems(); }); observer.observe(document.body, { childList: true, subtree: true }); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址