您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Remove affiliate blocks for www.ozbargain.com.au
// ==UserScript== // @name OZBargain Affiliate Filter // @description Remove affiliate blocks for www.ozbargain.com.au // @version 2025-03-13 // @author realroyxu // @match https://www.ozbargain.com.au/* // @icon https://www.ozbargain.com.au/favicon.ico // @grant none // @run-at document-idle // @license MIT // @namespace realroy.org // ==/UserScript== (function() { 'use strict'; // Your code here... const aff = document.getElementsByClassName('overlay-afflink'); let rep = aff.length; for (let i = 0; i < rep; i++){ try{ let node = aff[0].closest('.node-ozbdeal'); if (node){ node.remove(); } else{ node = aff[0].closest('.node-competition'); if(node){ node.remove(); } } } catch(err){ console.log(err); } } })();