Close Ads

Close ads on LookMovie

Dit zijn versies van het script waarin de code is bijgewerkt. Alle versies tonen.

  • v0.6 25-07-2024

    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 17-07-2024

    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 16-07-2024

    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 19-06-2024

    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 19-05-2024