/HiAnimeAdBlocker

Ad Blocker Extension for HiAnime

MIT LicenseMIT

License Release Development

🌸 HiAnime Ad Blocker

Banner

The HiAnime Ad Blocker extension is designed specifically for enhancing the browsing experience on HiAnime and similar streaming sites. It automatically detects and blocks redirect links, closes unwanted tabs, and hides intrusive ads to provide a smoother, distraction-free viewing experience.

Important

Not Official Release a pass key is required due to ( HiAnime Ad Blocker v1.6.9 was submitted. Awaiting moderation. )

Note

This Ad Blocker auto-detects redirect URL links and auto-closes tabs.

Browser Support


Chrome

Edge

Opera

Opera GX

Errors

Caution

Please notify of bugs you encounter or like changes in the Ad Blocker.

Goal

The goal is to watch HiAnime without unwanted ads or pop-ups.

Features:

  • Auto Tab Closing: Detects and closes redirect pop-up tabs to prevent interruptions.

  • Customizable Allowed Domains: Maintains a list of allowed domains (e.g., discord.com, github.com) to prevent unnecessary blocking on trusted sites.

  • Ad Blocking Rules: Blocks various ad resources (scripts, images, etc.) from known ad domains, enhancing load times and privacy.

  • Hide Pop-ups and Overlays: Conceals overlays, modals, and banners commonly used for ads.

  • URL Monitoring: Monitors page changes (hash change, popstate) and DOM mutations to detect and block ads dynamically.

  • Multi-Browser Compatibility: Primarily designed for Chrome, Opera, and other

Bug Fixes:

  • Fix service worker (inactive) error, only when developer mode is active in "extension" to see the error.
  • Fix "Allowed domains list" comes with default domains cause of the "service worker (inactive) error".

Changelog:

Version 1.7.0

Changes:

  • Feature Enhancements

Step 1: Download the Repository

  1. Clone or download the repository from GitHub to your local machine.
    git clone https://github.com/Pekadii/HiAnimeAdBlocker.git
    

Step 2: Load as an Unpacked Extension

  1. Open Chrome (or Opera) and navigate to chrome://extensions/ or opera://extensions/.
  2. Enable Developer mode by toggling the switch in the top right corner.
  3. Click Load unpacked and select the directory where you downloaded this extension.

Step 3: Grant Permissions

  1. Upon loading, you may need to grant the requested permissions to ensure proper ad-blocking functionality across domains.

Usage Notes

This extension works specifically on HiAnime and a few other domains. Domains that are permitted by default include:

  • hianime.to
  • discord.com
  • github.com
  • addons and YouTube pages

Editing the Allowed Domains

To customize the list of allowed domains:

Open background.js. Modify the allowedDomains array to include or exclude domains as desired.

Domain

Logo

Screenshots

Ad Blocker Screenshot Ad Blocker Screenshot