Skip to content

A network-safe userscript that blocks Aparat ads without intercepting requests. It hides UI ad blocks, and force-skips pre/mid-roll videos

License

Notifications You must be signed in to change notification settings

ehsanghaffar/aparat-adb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Aparat Ads Blocker Userscript

فارسی

A UserScript to remove Aparat ads. Supports both desktop and mobile platforms.

Introduction

It hides UI ads, neutralizes ad configuration during Next.js hydration, and force-skips pre/mid-roll videos (including those from ads.asset.aparat.com). The script runs at document-start and does not intercept network requests (@grant none).

Usage

  • Desktop:

    1. Install the Tampermonkey extension in your browser.
    2. Install the script by either:
      • Copying the contents of main.js into a new Tampermonkey script, or
      • Installing directly from your repository’s raw URL (if hosted), e.g. https://raw.githubusercontent.com/ehsanghaffar/aparat-adb/main/main.js.
  • Android:

    1. Install the Via browser.
    2. In Via, install the script by opening the raw main.js URL or by pasting the script into a new userscript.
  • iOS: You may try a userscript-capable browser (results vary by browser and iOS version).

Notes

  • Metadata requirements: @match *://*.aparat.com/*, @run-at document-start, @grant none.
  • For debugging: set window.dev = true in main.js to enable logs.
  • The included video.html snapshot can be used to validate selectors and flows locally.

Contributing

See CONTRIBUTING.md for setup, coding standards, and PR guidelines.

License

MIT – see LICENSE.

About

A network-safe userscript that blocks Aparat ads without intercepting requests. It hides UI ad blocks, and force-skips pre/mid-roll videos

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published