Age | Commit message (Collapse) | Author |
|
Forgot to comment out the Mousetrap license in the final build file.
|
|
This was for debugging and is no longer needed.
|
|
|
|
|
|
Remove the old Chrome extension code now that it works as a user script.
|
|
Don't need Browserify. Just concatenate the user script header and the
compiled `main.js`.
Rebuild the `peniquitous.user.js` user script file.
|
|
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.
|
|
|
|
Add Browserify to enable imports. Remove the script insertion code since
it isn't necessary for a user script.
|