Reject cookie banners

Automatically rejects cookies and legitimate interest

Fra og med 21.12.2024. Se den nyeste version.

Dette er versioner af dette script, hvor koden er blevet opdateret. Vis alle versioner.

  • v1.7.2 15.03.2025

    stop checking for cookie banners after first 30 seconds of visiting a page, for performance/call-stack size reasons

  • v1.7.1 22.12.2024

    formatting

  • v1.7 22.12.2024

    add more cookie banners
    change btn_htmlMatch and confirm_htmlMatch to onBtnFound and onConfirm found
    add onBannerFound
    the onXFound functions are for parsing that cannot be done with just selectors

  • v1.6 22.12.2024

    add more cookie banners. general categorization of banners for easier maintenance

  • v1.5 21.12.2024

    more cookie banners

  • v1.4 21.12.2024

    add more cookie banners

  • v1.3.3.13 21.12.2024

    remove DONT_CLOSE from most recently added cookie notice because the opt out works correctly

  • v1.3.3.12 21.12.2024

    read onToggleFound because it is needed

  • v1.3.3.11 21.12.2024

    remove onToggleFound, clicking the toggle works fine

  • v1.3.3.10 21.12.2024

    setting checked to false worked, see if clicking it works

  • v1.3.3.9 21.12.2024

    try directly setting checked to false

  • v1.3.3.8 21.12.2024

    add onToggleFound to verify that clicking did change the checkbox from checked to not checked

  • v1.3.3.7 21.12.2024

    cookie banner not responding to clicks, so wait between clicks

  • v1.3.3.6 21.12.2024

    update reference to banner after waiting

  • v1.3.3.5 21.12.2024

    fix checkbox selector for new cookie banner

  • v1.3.3.4 21.12.2024

    wait for 2 seconds so that the cookie notice can load if using the queryAll option
    more precise toggle query and htmlMatch

  • v1.3.3.3 21.12.2024

    add DONT_CLOSE option for testing

  • v1.3.3.2 21.12.2024

    test didnt work correctly, make sure theres some toggles before trying to click it

  • v1.3.3.1 21.12.2024

    started adding another cookie banner (no close button yet, just for testing)

  • v1.3.3 21.12.2024

    remove privatize iframes function as it's outside the scope of rejecting cookie banners

  • v1.3.2 16.12.2024

    bug fix

  • v1.3.1 16.12.2024

    auto remove iframe that use the referrer policies 'origin-when-cross-origin' or 'unsafe-url'
    make iframe even more privacy respecting

  • v1.3 16.12.2024

    automatically removes the sandbox attribute of iframe elements for greater privacy

  • v1.2.2 16.12.2024

    better matching for fc-consent-root

  • v1.2.1 28.11.2024

    bug fix for most recently added banner

  • v1.2 28.11.2024

    add another banner, support different toggle type, add htmlMatch for when selectors on their own arent suitable, code tidy up

  • v1.1 27.11.2024

    add another cookie banner, support shadow DOM, restructure code

  • v1.0.3 27.11.2024

    confirm choices defiantly works, so re-enable banner.outerHTML = ''; for cookie notices that hang around

  • v1.0.2 27.11.2024

    implemented confirm choices

  • v1.0.1 27.11.2024

    aria-pressed is not updated after pressing button, so use :checked instead
    tempererally disable banner.outerHTML = ''; so that confirm choices can be implemented

  • v1 27.11.2024

    added @downloadURL and @updateURL metablock fields. change version number to 1

  • v0.2.5 27.11.2024

    better name and code tidy up

  • v0.2.4 27.11.2024

    code tidy up

  • v0.2.3 27.11.2024

    bug fix

  • v0.2.2 27.11.2024

    bug fix

  • v0.2.1 27.11.2024

    update to work for similar notice but different layout

  • v0.2 27.11.2024

    added another commonly used cookie banner

  • v0.1 27.11.2024