您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Remove sponsored listings on ebay.*
当前为
// ==UserScript== // @name eBay sponsored listings remover // @namespace B123 // @version 1.0 // @description Remove sponsored listings on ebay.* // @author Bjorn Nilsson // @match https://www.ebay.*/* // @run-at document-start // @require https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js // ==/UserScript== "use strict"; var removeSponsored = true; const getSponsoredListings = function(inScope){ return inScope.filter(function( index ) { var li = $(this) var sp_span = li.find("span[role='text'] > span"); //console.log(sp_span); var res = sp_span.filter(function( index ) { return $(this).is(':visible') && !!this.innerText.match(/[sponsored]/i) } ).clone() //console.log($(res).text()) return $(res).text().toLowerCase().includes("sponsored") }) } // $("section.b-listing > ul").find("li:has(div:contains('SPONSORED'))").css("border", "1px solid #F00") $("section.b-listing > ul").find("li:has(div:contains('SPONSORED'))").remove(); var f_res = getSponsoredListings($("ul > li.s-item")) if(removeSponsored){ f_res.remove(); } else { f_res.css("border", "1px solid #F00"); }