~/.js
folder on any site if the script file name matches the site name. For example, when you visit google.com
script ~/.js/google.com.js
will be automatically executed. Thus, modifying sites is no more difficult than using Firefox / GreaseMonkey.~/.js/default.js
will be executed on every request, so universal rules can be added here. $ cat ~/.js/github.com.js // github $('#header .logo img') .css('width', '100px') .css('margin-top', '-15px') .attr('src', '//bit.ly/ghD24e')
git clone http://github.com/defunkt/dotjs cd dotjs rake install
Source: https://habr.com/ru/post/123032/
All Articles