Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/luciopaiva/witchcraft
Inject Javascript and CSS right from your file system. Think GreaseMonkey for more advanced users.
https://github.com/luciopaiva/witchcraft
dotjs greasemonkey
Last synced: 3 days ago
JSON representation
Inject Javascript and CSS right from your file system. Think GreaseMonkey for more advanced users.
- Host: GitHub
- URL: https://github.com/luciopaiva/witchcraft
- Owner: luciopaiva
- License: mit
- Created: 2017-07-31T03:49:17.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2024-05-23T15:13:16.000Z (4 months ago)
- Last Synced: 2024-09-20T23:31:58.184Z (7 days ago)
- Topics: dotjs, greasemonkey
- Language: JavaScript
- Homepage: https://luciopaiva.com/witchcraft
- Size: 4.03 MB
- Stars: 259
- Watchers: 6
- Forks: 18
- Open Issues: 19
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
![Witchcraft](docs/title.png)
Think Greasemonkey for developers.
Witchcraft is a Google Chrome extension for loading custom Javascript and CSS directly from a folder in your file system, injecting them into pages that match their files names.
It works by matching every page domain against script file names available in the scripts folder. For instance, if one navigates to `www.google.com`, Witchcraft will try to load and run `google.com.js` and `google.com.css`.
For more information on how to install and use it, head to Witchcraft's [home page](//luciopaiva.com/witchcraft).
# Development
Node.js is required, but just to run tests. I also use `nvm` to manage Node.js versions, but that's not required (just make sure your Node.js version is similar to the one `.nvmrc` currently points to). To install test dependencies:
cd
nvm install
npm installThen you're ready to run tests:
npm test
# Credits
Witchcraft is my rendition of [defunkt](//github.com/defunkt)'s original extension, [dotjs](//github.com/defunkt/dotjs). Although I never got to actually use dotjs (it only worked for MacOS and the installation process was not easy), I really wanted something like that. Thanks, defunkt, for having such a cool idea.
Thanks [arimus](//github.com/arimus) for the idea of using Web Server for Chrome.
The little witch and the witch hat icons were provided by [Freepik](//www.flaticon.com/authors/freepik).