Last active
August 14, 2023 03:29
-
-
Save jasoncodes/6bbe51abde00646893b06bc0c8cdea22 to your computer and use it in GitHub Desktop.
Notion uncheck all bookmarklet
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
A simple bookmarklet to uncheck all the checkboxes (including nested checkboxes) in the current Notion document. | |
Minified using http://chriszarate.github.io/bookmarkleter/. |
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
javascript:document.querySelectorAll(%22.notion-frame%20.notion-scroller%20input[type=checkbox]:checked%22).forEach(function(a){a.click()}); |
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
document.querySelectorAll('.notion-frame .notion-scroller input[type=checkbox]:checked').forEach(function(element) { | |
element.click(); | |
}); |
Thanks for letting me know. I actually stumbled upon this gist for a non-nested usecase.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For people landing here, Notion supports non-nested use case https://twitter.com/notionhq/status/1167209517618040834?lang=en
But for nested checkbox use-case this bookmarklet would be useful