Skip to content

Instantly share code, notes, and snippets.

@velzie
Last activeJune 7, 2024 13:49
    How to keep using adblockers on chrome and chromium

    How to keep using adblockers on chrome and chromium

    1. google's manifest v3 has no analouge to the webRequestBlocking API, which is neccesary for (effective) adblockers to work
    2. starting in chrome version 127, the transition to mv3 will start cutting off the use of mv2 extensions alltogether
    3. this will inevitably piss of enterprises when their extensions don't work, so the ExtensionManifestV2Availability key was added and will presumably stay forever after enterprises complain enough

    You can use this as a regular user, which will let you keep your mv2 extensions even after they're supposed to stop working

    Linux

    In a terminal, run:

    sudo mkdir -p /etc/opt/chrome/policies/managed /etc/opt/chromium/policies/managed
    echo '{ "ExtensionManifestV2Availability": 2 }' | sudo tee /etc/opt/chrome/policies/managed/policy.json /etc/opt/chromium/policies/managed/policy.json

    ChromeOS

    • enable developer mode
    • upon rebooting, go into vt2 (shift+ctrl+right arrow function key)
    • log in as root
    • type in /usr/libexec/debugd/helpers/dev_features_rootfs_verification && reboot
    • upon rebooting, go into vt2 again and log in as root
    • run the commands from the linux section

    Windows

    Open regedit, and create Software\Policies\Google\Chrome\ExtensionManifestV2Availability as a dword set to 0x00000002

    MacOS

    In a terminal, run: defaults write com.google.Chrome ExtensionManifestV2Availability 2

    (note that i haven't tested this for mac. please let me know if it doesn't work)

    @Technetium1
    Copy link

    ChromeEnableManifestV2.reg

    Windows Registry Editor Version 5.00
    
    [HKEY_LOCAL_MACHINE\Software\Policies\Google\Chrome]
    "ExtensionManifestV2Availability"=dword:00000002
    ; Only works until June 2025

    @rwilsonncsa
    Copy link

    Linux instructions need this:
    sudo mkdir -p /etc/opt/chromium/policies/managed

    @butter-radish
    Copy link

    This will work for another year, per Google: https://developer.chrome.com/docs/extensions/develop/migrate/mv2-deprecation-timeline

    A solution that will work longer is apt-get install firefox

    @sponnusa
    Copy link

    This will work for another year, per Google: https://developer.chrome.com/docs/extensions/develop/migrate/mv2-deprecation-timeline

    A solution that will work longer is apt-get install firefox

    +1.

    Ditch anything that does not give the power to users in curbing the surveillance state or corporate...

    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment