蝦皮廣告封鎖器

蝦皮搜尋結果的前幾個商品廣告封鎖

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         蝦皮廣告封鎖器
// @namespace    https://greasyfork.org/scripts/437545
// @version      2.0
// @description  蝦皮搜尋結果的前幾個商品廣告封鎖
// @author       fmnijk
// @match        https://shopee.tw/*
// @icon         https://www.google.com/s2/favicons?domain=shopee.tw
// @grant        GM_addStyle
// @license      MIT
// ==/UserScript==

(function() {
    'use strict';
    const styles = String.raw`
        /*隱藏蝦皮搜尋結果廣告商品*/
        .shopee-search-item-result__item:has(.absolute.bottom-0.right-0.z-30.flex.pr-1.pb-1 > .inline-block.px-1.py-0\.5.rounded-sm.bg-shopee-black26.text-xs\/3.capitalize.text-white.whitespace-nowrap) {
            display: none !important;
        }
        `
    GM_addStyle(styles);
})();