Chris Jones 55fb288992 #violentmonkey, add todo item | 3 лет назад | |
---|---|---|
.. | ||
.eslintrc.json | 3 лет назад | |
README.md | 3 лет назад | |
extract_tampermonkey_script.py | 4 лет назад | |
freecadForumDoomScroll.user.js | 3 лет назад | |
freecadForumNavBarWidthFix.user.js | 4 лет назад | |
tampermonkey.skeleton.user.js | 4 лет назад |
*.user.js
to load the userscript in the browser based editorfor my particular local dev setup, i'm using apache2 on macos 10.14, and am serving the script file from my
~/Sites
directory within my/Users/$USER
directory.
to prevent having to bump the build number to load each local change while developing a userscript keep the installation window/tab open, and just click the confirm installation button. then all that is required is to refresh the browser tab that the user script is interacting with.
💡 there is a bit of a delay from when the userscript file is written and when the browser picks up on the change, so if the initial refresh does not load changes give 5 secs and try again, and if still nothing inspect *monkey settings.
the scripts can be a little finicky to get loaded, make sure the downloadURL
and the updateURL
are set to the proper path on the filesystem or else script changes will not be pushed when developing a script locally for testing. violentmonkey should display an error if it fails to fetch the updated script
~/Sites
directory