Greasy Fork is available in English.

Adblock Scroll Unblocker and Ad Elements Remover for OneJailbreak.com

Enable scrolling on pages that block it due to adblock detection and remove specific ad elements

Maker
sharmanhall
Dagelijks aantal installaties
0
Totaal aantal installaties
52
Beoordelingen
0 0 0
Versie
1.1
Gemaakt op
01-12-2023
Bijgewerkt op
01-12-2023
Licentie
MIT
Wordt toegepast op

Adblock Scroll Unblocker and Ad Elements Remover for OneJailbreak.com

Description

This userscript is designed to enhance your browsing experience on OneJailbreak.com. It specifically targets two main issues:

  1. Scrolling Blockage Due to Adblock Detection: Some websites implement a mechanism that disables scrolling when they detect an adblocker. This script enables scrolling again by modifying the page's style properties.

  2. Removal of Specific Ad Elements: The script also targets specific ad-related elements that might be intrusive or affect user experience, removing them from the page.

Features

  • Enable Scrolling: Restores the ability to scroll on pages that block this functionality due to adblock detection.
  • Remove Ad Elements: Identifies and removes specific elements related to ads, such as 'statementBox' and elements with the class 'anchores'.
  • Dynamic Response: Observes changes to the page and dynamically re-applies the fixes if the page tries to re-impose restrictions or re-add removed elements.

How to Use

  1. Install the Tampermonkey extension (or any other userscript manager) in your browser.
  2. Add this script to your userscript manager.
  3. Visit or refresh OneJailbreak.com, and the script will automatically execute its functions.

Code Explanation

  • MutationObserver: Used to monitor changes in the page's DOM. If the page undergoes changes that affect the script's functionality (like re-adding removed elements or changing styles), the script will reapply the necessary adjustments.
  • Event Listeners: The script listens for the 'DOMContentLoaded' event to ensure that it executes its functions after the page is fully loaded.

Compatibility

This script is designed for OneJailbreak.com but can be modified for similar functionalities on other websites. It requires no special permissions and works seamlessly with the Tampermonkey extension.

Version

  • Current Version: 1.1
  • Author: sharmanhall

License

This script is released under an open-source license. Feel free to modify, distribute, and use it as needed.


You can modify this writeup as necessary to better fit your needs or the specifics of the platform where you're posting it.