This repository has been archived by the owner. It is now read-only.
No longer maintained due to breaking changes in Chrome
Clone or download
Pull request Compare This branch is 77 commits ahead, 63 commits behind defunkt:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


dotjs-universal is a Chrome/Chromium browser extension that executes JavaScript and CSS files on websites based on their filename.

If you navigate to, dotjs will execute /scripts/ and/or /styles/ if either of those files exist.

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

jQuery 2.1 is included and you'll be able to use that in your scripts, and, two default files /scripts/default.js and /styles/default.css will load on every page, so you'll have a place to put helper functions, libraries or style sheets in.

By going to the extension options (Settings > Extensions > dotjs universal > Options), you can get the path where your files are located.


Unlike the original, this version does not run it's own local file server, all the files are located within the extension's own directory instead.

While this lets the extension work as a standalone extension and will work on every operating system, it has one major drawback:

When you update this extension (and by default, Chrome will do that automatically), it will delete all your existing scripts. Because of this, I highly suggest you replace the directories with a symbolic link to a safe place on your drive.

See this document on how to make a symbolic link on for your system.


By adding the following to /scripts/

// swap google logo with trollface
    background: 'url(// no-repeat',
    backgroundSize: 'auto 95px'

You will achieve this result upon every visit to



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

Other versions

Other browsers