你正在訪問的內容是外部程式的映像位址,僅用於使用者加速訪問,本站無法保證其可靠性。當前的連結位址(單點即可複製)為 https://greasyfork.org.cn/zh-CN/scripts/435916-etsy-remove-seller-ads-from-search-results-2021,源站連結 點此以跳轉。
Removes native advertising (Seller Ads) from Etsy search results
One day, I started receiving insane search results on Etsy. I would sort by lowest price and start seeing $300 items mixed in with the $1 items. This is unacceptable to me. I see Etsy made some changes that broke everybody else's published ad removal scripts and thought I'd try my hand at it. In essence, it seems they have attempted to obsfucate the text that identifies native advertisements from legitimate search results by interleaving each character with junk spans that contain content that never actually renders to the end user. This script demonstrates how you can disambiguate the junk text from the text that displays to the end user so that you can get back to shopping for the stuff you actually want to buy from Etsy.
It was hacked together in Microsoft Edge v96 for Windows and not tested in any other browsers. The es6 features may be problematic in older browsers.
It is only setup for English, but can be adapted pretty easy by changing the ad string.
I will probably not be actively maintaining this thing, so if it breaks or you want to give it better ergonomics, feel free to adapt the idea in your own script. Last updated Dec 2021.