Greasy Fork is available in English.

移除蝦皮廣告 (Remove Shopee Ads)

移除蝦皮廣告,移除那些容易誤點的廣告,避免使用者誤點商品。

Nainstalovat skript?
Skript doporučený autorem

Mohlo by se vám také líbit 蝦皮票券管理.

Nainstalovat skript
// ==UserScript==
// @name         移除蝦皮廣告 (Remove Shopee Ads)
// @version      1.3.0
// @description  移除蝦皮廣告,移除那些容易誤點的廣告,避免使用者誤點商品。
// @author       Danny H.
// @match        https://shopee.tw/*
// @match        https://shopee.vn/*
// @match        https://shopee.co.id/*
// @match        https://shopee.com.my/*
// @match        https://shopee.co.th/*
// @match        https://shopee.ph/*
// @match        https://shopee.sg/*
// @match        https://shopee.com.br/*
// @icon         https://freepngimg.com/save/109004-shopee-logo-free-transparent-image-hq/128x128
// @grant        GM_addStyle
// @license      MIT
// @require      https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js
// @namespace    https://greasyfork.org/users/1166167
// ==/UserScript==
(function() {
    'use strict';
    const removead = setInterval(() => {
        const $ads = $(':contains("AD"), :contains("Ad"), :contains("廣告")');
        $ads.each(function() {
            $(this).closest('.col-xs-2-4.shopee-search-item-result__item').hide();
            $(this).closest('.shopee_ic').hide();
             // 移除 shopee_ic 的上一層 div
            $(this).closest('.shopee_ic').parent().remove();
            $(this).closest('.Qnex0a').hide();
            $(this).closest('.QDF8HH.col-xs-2').hide();
            $(this).closest('.shopee-header-section.shopee-header-section--simple').hide();
        });
    }, 500);
    // 應對網址變更
    window.addEventListener('locationchange', removead);
})();