Last active
December 8, 2017 01:51
-
-
Save gaga5lala/06e0f308a0a16fb27675ce354f9c8cb3 to your computer and use it in GitHub Desktop.
Bookmarklet to hide gitlab system notes. (e.g, issue edit history)
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:(function(){document.querySelectorAll("ul.notes .system-note").forEach(function(ele){ele.style.display ='none'})})() |
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:(function(){document.querySelectorAll("ul.notes .system-note").forEach(function(ele){ele.style.display = ((ele.style.display === '' || ele.style.display === 'block') ? 'none' : 'block')})})() |
display attribute is ''
in the beginning.
document.querySelectorAll("ul.notes .system-note").forEach(function(ele){
ele.style.display = ((ele.style.display === '' || ele.style.display === 'block') ? 'none' : 'block')
})
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
add toggle feature