A UserScript to remove Aparat ads. Supports both desktop and mobile platforms.
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).
-
Desktop:
- Install the Tampermonkey extension in your browser.
- Install the script by either:
- Copying the contents of
main.jsinto 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.
- Copying the contents of
-
Android:
- Install the Via browser.
- In Via, install the script by opening the raw
main.jsURL or by pasting the script into a new userscript.
-
iOS: You may try a userscript-capable browser (results vary by browser and iOS version).
- Metadata requirements:
@match *://*.aparat.com/*,@run-at document-start,@grant none. - For debugging: set
window.dev = trueinmain.jsto enable logs. - The included
video.htmlsnapshot can be used to validate selectors and flows locally.
See CONTRIBUTING.md for setup, coding standards, and PR guidelines.
MIT – see LICENSE.