Created
February 17, 2024 16:14
-
-
Save atomize/9fc0c570829ff577895d3a1f9496707b to your computer and use it in GitHub Desktop.
CSS Bookmark Hack
This file contains hidden or 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
// Enter this code in to the URL field of a bookmark in chrome | |
javascript: (function() %7B var elements = document.body.getElementsByTagName('*'); var items = []; for (var i = 0; i < elements.length; i++) %7B if (elements[i].innerHTML.indexOf('* %7B background:#000!important;color:#0f0!important;outline:solid #f00 1px!important; background-color: rgba(255,0,0,.2) !important; }') != -1) { items.push(elements[i]); } } if (items.length > 0) { for (var i = 0; i < items.length; i++) { items[i].innerHTML = ''; } } else { document.body.innerHTML += '<style>* { background:#000!important;color:#0f0!important;outline:solid #f00 1px!important; background-color: rgba(255,0,0,.2) !important; }\ * * { background-color: rgba(0,255,0,.2) !important; }\ * * * { background-color: rgba(0,0,255,.2) !important; }\ * * * * { background-color: rgba(255,0,255,.2) !important; }\ * * * * * { background-color: rgba(0,255,255,.2) !important; }\ * * * * * * { background-color: rgba(255,255,0,.2) !important; }\ * * * * * * * { background-color: rgba(255,0,0,.2) !important; }\ * * * * * * * * { background-color: rgba(0,255,0,.2) !important; }\ * * * * * * * * * { background-color: rgba(0,0,255,.2) !important; }</style>'; } })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment