3 ms·
I love Violentmonkey. I use it to make the user names on HN larger so they are more prominent when I'm reading posts, as I don't agree with HN's design to depri
by moron4hire 6y ago
I love Violentmonkey. I use it to make the user names on HN larger so they are more prominent when I'm reading posts, as I don't agree with HN's design to deprioritize post authorship.
- lurtbancaster 6y agoWhy not use Stylus instead? .hnuser {font-size: 20px;}
- j-james 6y agoViolentMonkey is more powerful than Stylus, and can encompass all of its functionality with something like JavaScript's textContent property. Being able to run normal JavaScript also makes it pretty easy to find and replace arbitrary elements - I use it for my personal Hacker News theme. https://github.com/j-james/hntheme https://github.com/j-james/hntheme
- lurtbancaster 6y agoViolentmonkey is defnitely more powerful. I could be mistaken but, the comment of the person to whom I was replying suggests they only need "username font size change" functionality. If that is all that is needed, then Stylus from a UI standpoint is far easier to manage. But if in addition to merely changing font size, you're also going to be replacing elements, obviously Stylus can't do that.
- moron4hire 6y agoThat was just one example
- fdgdd 6y agoThere's no need for extensions or userscript for this with Firefox. In ~/.mozilla/firefox/<profile>/chrome/userContent.css: @-moz-document domain("news.ycombinator.com") { .hnuser { font-size: 20px } } You'll have to restart Firefox for it to come into effect.
- moron4hire 6y agoYeah, but then I'd have to run Firefox, which is a dying product and probably won't be around in 5 years.