Last active
March 24, 2026 10:16
-
-
Save BookGin/4e6cc407ba979f7a8f4f43485009d359 to your computer and use it in GitHub Desktop.
Unregister all service workers in Firefox.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # navigate to about:debugging#workers first | |
| for (let k of document.getElementsByClassName("unregister-link")) k.click() | |
| for (let k of document.getElementsByClassName("qa-unregister-button")) k.click() |
FF 143.0.3 (aarch64)
URL: about:serviceworkers
document.querySelectorAll('#serviceworkers>div button[data-l10n-id="unregister-button"]').forEach(btn=> btn.click() )
To quote an ancient UK advertisement for tea, this is the TAYST! πͺ π
FF 143.0.3 (aarch64)
URL:about:serviceworkersdocument.querySelectorAll('#serviceworkers>div button[data-l10n-id="unregister-button"]').forEach(btn=> btn.click() )
It also works in 148.0.2 (64-bit) (mozilla-deb from
Here it is in bookmarklet form, if you want to make a button for it:
javascript:(function(){document.querySelectorAll('#serviceworkers>div button[data-l10n-id="unregister-button"]').forEach(btn=> btn.click() )})();Just add a new bookmark and paste that into the URL field. π
Heck, you could probably add a couple of lines to open the page, then prompt you you OK the process. π²
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks! This did it for me (FF 101.0b9, Developer Edition):