A browser extension to automatically bypass link shorteners, block advertisements/trackers, and remove on-page annoyances.
The extension is built around a single content script (content.js) that is injected into all web pages. It operates in three main ways:
- Network Blocking: It intercepts and blocks
fetchandXHRrequests to a predefined list of ad and tracker domains. - DOM Cleanup: It removes unwanted visual elements from the page, such as popups, ad banners, and overlays, based on a list of CSS selectors.
- Auto-Bypassing: It identifies and automatically clicks "continue" or "get link" buttons on link shortener websites.
To handle dynamic websites, the extension uses a MutationObserver to react to changes on the page, with a setInterval as a fallback.
To install this extension, you can load it as an unpacked extension in your browser.
Chrome:
- Navigate to
chrome://extensions. - Enable "Developer mode".
- Click "Load unpacked".
- Select the directory containing this repository's files.
Firefox:
- Navigate to
about:debugging. - Click "This Firefox".
- Click "Load Temporary Add-on...".
- Select the
manifest.jsonfile in this repository's directory.