4 ms·
Can you write a Chrome extension that ungreys downvoted Hacker News comments for me?
by bjourne 8y ago
Can you write a Chrome extension that ungreys downvoted Hacker News comments for me?
- skylark 8y agoYou can do that in a few minutes using an extension which allows you to inject custom JavaScript code (e.g. TamperMonkey for Chrome.) This line should do the trick: for (const node of document.querySelectorAll('.commtext')) {node.className = 'commtext c00'}
- yesenadam 8y agoGreat idea, thanks!! That didn't work for me (because I have old computer?) so I made a bookmarklet[0]: javascript:(function(){var i,x=document.querySelectorAll(".commtext");for (i=0;i<x.length;i++) x[i].className='commtext c00'})(); - which works fine. I never knew an easy way of doing that, much obliged. No more straining to read super-light grey. (Maybe better to change them to some other colour instead, like red.) [0] i.e. I made a browser bookmark named 'ungrey' with that javascript as the 'URL', and dragged it to bookmark bar.
- jolmg 8y agoIf it hasn't occurred to you and are straining your eyes to read them, you can just select the text to see it in white over blue background. That's what I do. Simple triple-click to select by paragraph.