Skip to content

fimble/dotjs-addon

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dotjs

(This is a Firefox Add-on port of defunkt's Chrome extension https://github.com/defunkt/dotjs.)

dotjs is a Firefox Add-on that executes JavaScript files in ~/.js based on their filename and the domain of the site you are visiting.

If you navigate to http://www.google.com/, dotjs will execute ~/.js/google.com.js.

This makes it super easy to spruce up your favorite pages using JavaScript.

Bonus: files in ~/.js have jQuery 1.5 loaded, regardless of whether the site you're hacking uses jQuery.

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.

Example

$ cat ~/.js/github.com.js
// swap github logo with trollface
$('#header .logo img')
  .css('width', '100px')
  .css('margin-top', '-15px')
  .attr('src', '//bit.ly/ghD24e')

Installation

Dependencies

Tested in

  • Firefox 4

Credits

"I almost wish you could just stick JavaScript in ~/.js. Do you know what I'm saying?"

About

~/.js for Firefox

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%