Last active
April 25, 2018 08:18
-
-
Save tomsiwik/e7982cc626a18d13d995ac04d60afbf6 to your computer and use it in GitHub Desktop.
Gitlab Toggle All Discussions
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:void(function(){const s=document.createElement('script');s.setAttribute('src','https://cdn.rawgit.com/tomsiwik/e7982cc626a18d13d995ac04d60afbf6/raw/f916fa5f67df43c13b13073a86a198a1dd5d1677/script.js');document.body.appendChild(s);}()); |
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
// Naîve solution | |
document.querySelectorAll('.js-toggle-content').forEach(node => node.style.display = "block") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment