aboutsummaryrefslogtreecommitdiffstats
path: root/peniquitous.user.js
AgeCommit message (Collapse)Author
2021-03-21Makefile: Ensure Mousetrap license is commentedTeddy Wing
Forgot to comment out the Mousetrap license in the final build file.
2021-03-21main.js.in: Remove old `console.log`Teddy Wing
This was for debugging and is no longer needed.
2021-03-21Increase version v0.0.1 -> v0.1.0Teddy Wing
2021-03-21peniquitous.user.js: Add Mousetrap license to key-event codeTeddy Wing
2021-03-21main.js.in: Remove old script insertion codeTeddy Wing
Remove the old Chrome extension code now that it works as a user script.
2021-03-21Makefile: Add a new `peniquitous.user.js` targetTeddy Wing
Don't need Browserify. Just concatenate the user script header and the compiled `main.js`. Rebuild the `peniquitous.user.js` user script file.
2021-03-21Work out the proper way to import scriptsTeddy Wing
In order to import our script dependencies and inject them correctly into the page, we need to remove the existing IIFEs, append them to the page in `<script>` tags, and wrap them in custom IIFEs. If I leave the original IIFEs, they get executed too early, and I can't insert the scripts into the page correctly. Got the custom IIFE idea from Max Shawabkeh (https://stackoverflow.com/users/181765/max-shawabkeh) on Stack Overflow: https://stackoverflow.com/questions/2303147/injecting-js-functions-into-the-page-from-a-greasemonkey-script-on-chrome/2303228#2303228 This is working now, but I want a way to build the final user script without copy-pasting the imports in the main file. Going to work out the build rules next.
2021-03-21Add user script headerTeddy Wing
2021-03-21Build into a Greasemonkey user scriptTeddy Wing
Add Browserify to enable imports. Remove the script insertion code since it isn't necessary for a user script.