User scripts are a powerful tool for users to take control of their online experience and customize websites to better suit their needs.
-
Install a userscript manager. For example, Greasemonkey
-
Open the Extension, press "Create new Script"
-
Copy the contents of the
userscript.js
file you want to add and save the file. (Ctrl + S)
Note If you don't want to automatically receive updates (from this repo), you can also just not use the
userscript.js
. Instead copy the header fromuserscript.js
and add it at the top of the other file.
## Why are all functions wrapped in a IIFE (Immediately Invoked Function Expression)?
This prevents polluting the global namespace. This way we can just paste the snipped in the console over and over again, for testing.