Offerup Highlight then Remove Ads

Remove annoyances from Offerup Website

スクリプトをインストールするには、Tampermonkey, GreasemonkeyViolentmonkey のような拡張機能のインストールが必要です。

You will need to install an extension such as Tampermonkey to install this script.

スクリプトをインストールするには、TampermonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyUserscripts のような拡張機能のインストールが必要です。

このスクリプトをインストールするには、Tampermonkeyなどの拡張機能をインストールする必要があります。

このスクリプトをインストールするには、ユーザースクリプト管理ツールの拡張機能をインストールする必要があります。

(ユーザースクリプト管理ツールは設定済みなのでインストール!)

このスタイルをインストールするには、Stylusなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus などの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus tなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

(ユーザースタイル管理ツールは設定済みなのでインストール!)

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
// ==UserScript==
// @name         Offerup Highlight then Remove Ads
// @namespace    https://openuserjs.org/users/hopkir
// @version      0.1
// @description  Remove annoyances from Offerup Website
// @author       Eyes`Only
// @copyright    2025, Eyes`Only
// @match        https://*.offerup.com/*
// @grant        none
// @run-at       document-idle
// @require      http://code.jquery.com/jquery-latest.js
// ==/UserScript==

/* global $ */

function addJQuery(callback) {
    var script = document.createElement("script");
    script.setAttribute("src", "//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js");
    script.addEventListener('load', function () {
        var script = document.createElement("script");
        script.textContent = "window.jQ=jQuery.noConflict(true);(" + callback.toString() + ")();";
        document.body.appendChild(script);
    }, false);
    document.body.appendChild(script);
}

function main() {
    $(document).ready(function () {
        function runme() {
            console.log("Highlighting Ads");
            $('[aria-label*="Ad"]').each(function () {
                console.log("Removing this Element: ", this);
            });
            $('[aria-label*="Ad"]').css({
                "background": "#F00",
                "border-color": "red",
                "border-width": "5px",
                "border-style": "solid"
            });
            setTimeout(thenrunme, 1000);
        }

        function thenrunme() {
            console.log("Hiding Ads");
            $('[aria-label*="Ad"]').hide();
        }


        console.log("Setting Interval");
        setInterval(runme, 4050);
    });
}

addJQuery(main);