4 ms·
The other day I needed a script to tweak images on Wikipedia so I looked into Greasmonkey. I installed it on Chrome and started writing the script. Then I remem
by fphilipe 13y ago
The other day I needed a script to tweak images on Wikipedia so I looked into Greasmonkey. I installed it on Chrome and started writing the script. Then I remembered that I'd seen an alternative before which simply runs a JS file on your FS that contains the URL's host inside ~/.js. It's called dotjs [1] and it's really strait forward to use as it does not require the complicated header section. See the tiny script I wrote to see how easy it is to run custom JS on any domain [2].
[1] https://github.com/defunkt/dotjs https://github.com/defunkt/dotjs
[2] https://github.com/fphilipe/dotfiles/blob/master/js/wikipedia.org.js https://github.com/fphilipe/dotfiles/blob/master/js/wikipedi...