OCLB.user.js
is where all the magic happens. It's the only source file for the userscript, all self-contained, no external dependencies, and written in ES5. You can just make changes in that file and submit a PR.
After the file is updated in the repo (and version number changed too), the userscript will soon be pushed to all devices which have the script installed when Tampermonkey/Greasemonkey/Violentmonkey automatically updates the script.
Two Click Llama Button is installed as a bookmarklet, on devices which don't support userscripts, like iOS and Android devices. The bookmarklet just appends a script tag linked to the TCLB.js
file in the root directory of the repo.
- Fork and clone this repo.
- Install the development dependencies by running
yarn
ornpm install
. - Make your changes in
TCLB/src/TCLB.js
. - Run
yarn lint
ornpm run lint
to check for any recommendations. - Run
yarn build
ornpm build
to transpile the ES6 source file into ES5 (saved asTCLB/bin/TCLB.js
). - Push the changes upstream and submit a PR.