Close Ads

Closes ads on LookMovie and removes specific reCAPTCHA, banner ads from the page

Ili estas versioj de tiu ĉi skripto, kie la kodo estas ĝisdatigita. Montri ĉiujn versiojn

  • v0.6.1 2024/10/19

    Changelog:

    Version 0.6.1

    Added

    Notification and Banner Ad Handling:

    • Added removal of notification banners (div.notifyjs-corner) and banner ads (.banner-become-affiliate).

    reCAPTCHA-Like Element Removal:

    • Added functionality to remove elements with specific inline styles (e.g., reCAPTCHA-like ads).

    Generalized Element Interaction:

    • Introduced interactWithElement function for both clicking and removing elements.
    • Added removeElementByStyles function to handle elements based on inline styles.

    Debounced Handling:

    • Implemented a debouncing mechanism (debounceTime) to optimize performance when handling ads that load dynamically.

    Improved

    Error Handling and Logging:

    • Extended error handling for various types of elements and interactions.
    • Enhanced logging for better tracking of element removal and clicks.

    Fixed

    Click Behavior for Buttons:

    • Restored proper functionality to interact with buttons such as the "I Prefer Ads" button by reintroducing click actions where necessary.
  • v0.6 2024/07/25

    feat: Enhance ad-closing script with configuration, MutationObserver, and error handling

    • Added configuration object for settings management
    • Improved ad-closing logic with visibility checks and error handling
    • Integrated MutationObserver to dynamically close ads on DOM changes
    • Introduced initialization function to start the process on document ready
    • Added global error listener for logging script errors
    • Included polyfill for MutationObserver to support older browsers
    • Implemented cleanup on window unload to stop MutationObserver
  • v0.5 2024/07/17

    feat: Add continuousCheck option and enhance continuousAdClosing functionality

    • Added a continuousCheck option in the config. When set to true, the script will continuously check for ads, even after closing one.
    • Modified the continuousAdClosing function to reset the attempt counter whenever an ad is closed. This ensures that the script keeps running indefinitely if continuousCheck is true.
    • The script now runs continuously, which should catch ads that appear during episode transitions or at any other time after the initial page load.
  • v0.4 2024/07/16

    feat: Improve ad closing speed and reliability

    • Implement near-instant ad closing after page load by reducing check interval to 50ms for faster response and increasing maximum attempts to 100, allowing for a total runtime of 5 seconds.
    • Enhance script initialization by adding a DOMContentLoaded event listener and a fallback setTimeout.
    • Replace MutationObserver with rapid interval checking for better performance.
    • Introduce a configuration object for easy adjustment of parameters.
    • Improve robustness with added error handling to catch and log any errors.
    • Expand debugging capabilities with more extensive console logging.
  • v0.3 2024/06/19

    feat: Update LookMovie close ads script to version 0.3

    The LookMovie close ads script has been updated to version 0.3. This update changes the selector for the close button to ensure it works correctly with the latest version of the website.

  • v0.2 2024/05/19