max / Basic Ad Blocker & Anti-Adblock Defeater (UserScript)

Install steps: Install a userscript manager, select Install, then open a website matched by the script.

ئىشلەتكۈچى قوللانغۇچىلىرى HOWTO Chrome Edge Firefox

ئېلان قىلىندى:

نەشرى: 2.1+a9b8995 يېڭىلاندى

خۇلاسە: A basic UserScript to attempt blocking common ads, including pop-up video ads and unwanted new tab redirects, and some anti-adblock detection methods.

ئىجازەتنامە: MIT

Antifeature: ئېنىق ئەمەس

Source and freshness

The following figures come from the original source and are separate from activity on this site.

Original script: Basic Ad Blocker & Anti-Adblock Defeater (UserScript)

Source version: 2.1

Last source check:

Last successful check:

Source daily installs
0
Source total installs
0
OpenUserJS install requests
0

Requests received by this site are not proof that a user completed installation.

Clicking Install records a request on this site; it does not confirm installation. Not working after install? View troubleshooting and issues

Basic UserScript Ad Blocker

A simple UserScript to block ads, pop-ups, video ads, and bypass basic anti-adblock detection across websites.

License: MIT

Key Features:

  • Ad Element Hiding: Removes banners, sidebars, and ad containers using CSS selectors.
  • Video Ad Blocker: Stops video ads by pausing, clearing, and removing video elements.
  • Pop-up/Redirect Block: Overrides window.open to block new tab redirects from known ad domains.
  • Anti-Adblock Bypass: Tricks basic adblock detectors by altering JavaScript variables and element properties.
  • Dynamic Ad Blocking: Uses MutationObserver to catch ads injected after page load.

How It Works:

  • Runs at page start to apply blocks early.
  • Hides ads instantly with injected CSS.
  • Monitors page for new ads continuously.
  • Blocks pop-unders and anti-adblock scripts before they trigger.

Important: This script offers basic protection. For stronger, network-level ad blocking, use extensions like uBlock Origin or AdGuard.

Installation Guide:

  1. Install Tampermonkey (Chrome, Edge, Firefox, Safari) or Greasemonkey (Firefox).
  2. Create a new script in the extension.
  3. Delete boilerplate code.
  4. Paste the full script code (including // ==UserScript== headers).
  5. Save and enable it. It will work automatically on supported sites.

باھا: 0