• Stars
    star
    257
  • Rank 158,728 (Top 4 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 7 years ago
  • Updated 6 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Inject Javascript and CSS right from your file system. Think GreaseMonkey for more advanced users.

Witchcraft

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.

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 <project-folder>
nvm install
npm install

Then you're ready to run tests:

npm test

Credits

Witchcraft is my rendition of defunkt's original extension, 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 for the idea of using Web Server for Chrome.

The little witch and the witch hat icons were provided by Freepik.

More Repositories

1

heapify

The fastest JavaScript priority queue out there. Zero dependencies.
TypeScript
716
star
2

chladni

Chladni plate simulation made with vanilla Javascript.
JavaScript
48
star
3

markdown-toc

Online markdown table of contents generator
HTML
45
star
4

country-flags

Display flag images based on ISO country codes.
HTML
34
star
5

socketio-with-express

Sample script demonstrating how to run Express with socket.io.
JavaScript
31
star
6

itermoxyl

Tool to automatically open multiple ssh connections in iTerm2 by querying ~/.ssh/config.
Python
30
star
7

ingresso

See movie session seat maps right from your console window!
JavaScript
13
star
8

flow-field

Playing with a vector field in HTML5 canvas using vanilla Javascript.
JavaScript
11
star
9

youtube-takeout-analyzer

JavaScript
10
star
10

magicavoxel-threejs-howto

Loading MagicaVoxel models in Three.js
HTML
10
star
11

rock-paper-automaton

A cellular automaton that plays rock paper scissors.
JavaScript
10
star
12

fit

Javascript client-side FIT file analyzer.
JavaScript
10
star
13

graham-scan

A JavaScript implementation of the Graham scan algorithm for finding the convex hull of a set of points.
JavaScript
9
star
14

binary-sse

Using server-sent events to send binary data.
JavaScript
6
star
15

java-simple-system-info

A very simple class showing how to obtain system information from inside a Java application.
Java
6
star
16

namely-org-chart

Simple script to load Namely org chart into a d3 tree layout.
TypeScript
5
star
17

pdfhacker

A low-level PDF file parser (still a work in progress).
JavaScript
5
star
18

doobie

A minimalist two-way data-binding library for those that are looking for something leaner than big fat frameworks like Angular.js.
JavaScript
5
star
19

water

Cellular automata water flow simulation running on the GPU
JavaScript
4
star
20

template-typescript-rollup

Code to use as the initial structure for developing web apps.
JavaScript
4
star
21

tree

A space-colonized growing tree.
JavaScript
4
star
22

UOMachine

Keeping this abandoned project alive.
C#
4
star
23

youtube-list-channel-videos

Simple script to fetch the list of all videos uploaded to a given YouTube channel.
JavaScript
3
star
24

easyhook

Fork of the official EasyHook project.
C
3
star
25

caparzo

A lean JavaScript library with easy-to-use pan & zoom for canvas elements on both mobile and desktop platforms.
JavaScript
3
star
26

chaos

A simulation of the chaos game.
JavaScript
3
star
27

willie

A companion to Winston
JavaScript
3
star
28

web-graphics-comparison

This is a very crude performance test to compare different approaches to visualizing 10k graphic elements on the screen.
JavaScript
3
star
29

cols-and-rows

When grep is not enough... transform text input, line by line, using regular expressions.
Python
3
star
30

escher

Generative art inspired by Escher (WIP).
JavaScript
2
star
31

socketio-with-restify

Fully functional example showing how to run socket.io with restify.
JavaScript
2
star
32

sally

Checks status of repositories in all directories.
Python
2
star
33

tcptop

Just like top, but for TCP sockets.
Python
2
star
34

particles

Particle simulation experiment using P5.js
JavaScript
2
star
35

pixi-live-map

Using pixi.js to load a live map with thousands of moving elements.
JavaScript
2
star
36

torrent-file-viewer

Drag and drop to see a torrent file's contents.
JavaScript
2
star
37

spiral

The beauty of a prime spiral.
JavaScript
2
star
38

nuclear

Generative art playing with the concept of strong interaction (aka nuclear) forces.
JavaScript
2
star
39

boleto

Analyzes bar codes of some Brazilian companies' bills.
JavaScript
2
star
40

noise

Experimenting with noise to generate terrain.
JavaScript
2
star
41

mouse

Simple online app to test malfunctioning mouses.
HTML
2
star
42

exchange-rate-scraper

Simple scraper to get euro exchange rates from sources like Transferwise, Remessa Online, etc.
JavaScript
1
star
43

climb

Compare some of the most famous cyclist climbs.
JavaScript
1
star
44

node-examples

JavaScript
1
star
45

karplus

Karplus-Strong synthesis (or how to simulate the sound of plucked strings with white noise).
JavaScript
1
star
46

rush-hour

Particles following predetermined paths.
JavaScript
1
star
47

tats

stat multiple files
JavaScript
1
star
48

udp-perf-js

JavaScript
1
star
49

vertx-lettuce-redis-client

A Redis client implemented with Lettuce using Vert.x.
Java
1
star
50

golfer

Online Javascript code golfer
HTML
1
star
51

canvas-cpu-benchmark

Things I learned while developing visualizations in the HTML canvas.
JavaScript
1
star
52

galton

Simulation of a Galton board.
JavaScript
1
star
53

uofiddler

UO Fiddler Git Repository
C#
1
star
54

razor

Razor Assistant
C#
1
star
55

protobuf-memory-optimizations

Simple experiment to show how reusing objects can hugely decrease the number memory allocations needed to handle protobuf messages.
Java
1
star
56

java-nio-tcp-perf

Java NIO TCP load and performance test.
Java
1
star
57

redis-nodejs-test

JavaScript
1
star
58

epoch

Experimental timeline plugin using d3.js
TypeScript
1
star
59

ansi

JavaScript
1
star
60

cambio

A simple Electron app to display current dollar conversion rates.
JavaScript
1
star
61

unlike

Shows differences between two directories
JavaScript
1
star
62

gear

Calculate gear ratios of your bike.
HTML
1
star
63

git-file-line-count-history

Simple script to track how the size of a specific file in a git repository changed across time.
JavaScript
1
star