3 ms·
Handy bookmarklet javascript:(function(){Array.from(document.body.getElementsByTagName('*'), e => e.style.outline = '2px dotted orangered');})();
by felixthehat 7y ago
Handy bookmarklet
javascript:(function(){Array.from(document.body.getElementsByTagName('*'), e => e.style.outline = '2px dotted orangered');})();
- aabbcc1241 7y agoWhy not inject css instead? That would be more effective
- felixthehat 7y agohow do you mean?
- Izkata 7y agoLike this: https://stackoverflow.com/questions/15505225/inject-css-stylesheet-as-string-using-javascript https://stackoverflow.com/questions/15505225/inject-css-styl... var node = document.createElement('style'); node.innerHTML = '* { outline: 2px dotted orangered; }; document.body.appendChild(node);
- err4nt 7y agoThis should suffice, no need to make a variable, this can all be done at once: document.head.appendChild(document.createElement('style')).textContent = '* { outline: 2px dotted orangered'