Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 47 lines (28 sloc) 1.384 kb
7d8886b ricky rosario Initial version of dotjs.
rlr authored
1 dotjs
2 =====
3
4 (This is a Firefox Add-on port of defunkt's Chrome extension <https://github.com/defunkt/dotjs>.)
5
6 dotjs is a Firefox Add-on that executes JavaScript files in `~/.js` based on their filename.
7
8 If you navigate to `http://www.google.com/`, dotjs will execute `~/.js/google.com.js`.
9
10 This makes it super easy to spruce up your favorite pages using JavaScript.
11
12 Bonus: files in `~/.js` have jQuery 1.5 loaded, regardless of whether the site you're hacking uses jQuery.
13
14 GreaseMonkey user scripts are great, but you need to publish them somewhere and re-publish after making modifications. With dotjs, just add or edit files in `~/.js`.
15
16 ## Example
17
18 $ cat ~/.js/github.com.js
19 // swap github logo with trollface
20 $('#header .logo img')
21 .css('width', '100px')
22 .css('margin-top', '-15px')
23 .attr('src', '//bit.ly/ghD24e')
24
25 ![](https://dl.dropbox.com/u/361064/dotjs.png)
26
27 ## Installation
28
29 - You can install from Mozilla Add-ons site: [TODO: AMO URL]
30 - Or from source. Refer to the Add-on SDK Docs: <https://jetpack.mozillalabs.com/sdk/latest/docs/>
31
32 ## Dependencies
33
34 - addon-sdk: https://github.com/mozilla/addon-sdk/
35
36 ## Tested in
37
38 - Firefox 4
39
40 ## Credits
41
42 - defunkt: <https://github.com/defunkt/dotjs>
43 - jQuery: <http://jquery.com/>
44 - Ryan Tomayko for:
45
46 > "I almost wish you could just stick JavaScript in ~/.js. Do you know what I'm saying?"
Something went wrong with that request. Please try again.