Skip to content

Commit

Permalink
Add description and call it done
Browse files Browse the repository at this point in the history
  • Loading branch information
mwgamera committed Jan 3, 2020
1 parent 0cdd09c commit 9864fb9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
1 change: 0 additions & 1 deletion .gitignore

This file was deleted.

8 changes: 6 additions & 2 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,20 @@ host to access the files.

Both extension and messaging host are trivial, but configuring it to
work together is rather annoying, which is why this exists to build it
as a debian package.
as a Debian package.

Installation
------------

This repository is in DebSrc3 format and you can build it using your
favourite tools and then just install the resulting package.

In debian stretch, chromium additionally needs the extension to be
In Debian stretch, Chromium additionally needs the extension to be
explicitly added with --load-extension flag. In buster, one only
needs to restart the browser as it should be added automatically.

It does not work with Google Chrome.

Usage
-----

Expand All @@ -33,6 +35,8 @@ to https://example.com/, it will inject files ~/.js/example.com.js and
Similarly, it will load CSS style sheets from ~/.css/example.com.css,
~/.css/com.css, and ~/.css/default.css.

Internationalized domain names require file names in their punycode form.

Unlike in the original dotjs, no additional libraries are injected.
If compatibility is desired, one may put jQuery in ~/.js/default.js
which is included in all sites.
1 change: 1 addition & 0 deletions webext/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"manifest_version": 2,
"name": "Dotjs-NH",
"version": "0",
"description": "Execute JavaScript files from ~/.js and load CSS files from ~/.css based on site domain.",
"permissions": [
"nativeMessaging",
"webNavigation",
Expand Down

0 comments on commit 9864fb9

Please sign in to comment.