Last active
July 12, 2023 16:10
-
-
Save BookGin/4e6cc407ba979f7a8f4f43485009d359 to your computer and use it in GitHub Desktop.
Unregister all service workers in Firefox.
This file contains 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() |
they changed the className, at least in Firefox 81, now should be:
for (let k of document.getElementsByClassName("qa-unregister-button")) k.click()
I've updated the code snippet. Thank you!
I had to update it to the following to work for me on FF 87.0
for (let k of document.querySelectorAll('[data-l10n-id="unregister-button"]')) k.click()
Thanks! This did it for me (FF 101.0b9, Developer Edition):
$$('.qa-unregister-button').forEach(b => b.click())
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
they changed the className, at least in Firefox 81, now should be:
for (let k of document.getElementsByClassName("qa-unregister-button")) k.click()