-
-
Save BookGin/4e6cc407ba979f7a8f4f43485009d359 to your computer and use it in GitHub Desktop.
| # 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())
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. π²
they changed the className, at least in Firefox 81, now should be:
for (let k of document.getElementsByClassName("qa-unregister-button")) k.click()