Chris Jones 55fb288992 #violentmonkey, add todo item 3 anni fa
..
.eslintrc.json 8bbf6ab4d8 #brewfile weekly launchd task, #violentmonkey eslintrc update, #freecadforumdoomscroll progress 3 anni fa
README.md 55fb288992 #violentmonkey, add todo item 3 anni fa
extract_tampermonkey_script.py be08560477 #violentmonkey, checkin user scripts dir and first userscript 4 anni fa
freecadForumDoomScroll.user.js 8e0019a1d0 add to reference links for freecad doomscroll user.js script 3 anni fa
freecadForumNavBarWidthFix.user.js 9bf6243c70 #violentmonkey, #userscript #userscripts, updated skeleton script, fleshed out doomscroll script for freecad forums, added #violentmonkey README for explaining naunces of developing userscripts and testing locally 4 anni fa
tampermonkey.skeleton.user.js b5e3aa502c #violentmonkey, #userscript #userscripts, updated skeleton script, fleshed out doomscroll script for freecad forums, added #violentmonkey README for explaining naunces of developing userscripts and testing locally 4 anni fa

README.md

installation

  1. navigate to the file location within browser that has *monkey browser extension installed on it.
  2. click on the file URL *.user.js to load the userscript in the browser based editor

for 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.

troubleshooting

update dec 11, 2020

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

Setup/local development for userscript files

  • watch the following youtube video for setting up local text editor for userscripts.

TODOs

  • search for a focus on hover script, preferably one that works with youtube, thus not having to click the playback window to use keyboard shortcuts
  • see if a symlink will work with specifying the path to the script file as opposed to putting the raw script file within the ~/Sites directory > it appears symlinking $HOME/Sites/lnk to $dots/config/violentmonkey/script.user.js does not have any issues on macos using vivaldi browser
  • flesh out readme explaining how the defeault macos apache2 can be used to serve userscript files in order to edit userscripts in local editor such as vim, neovim, or dare i say emacs 😬 instead of using the builtin browser based script editor.
  • in an alt life get hot loading userscripts so i don't have to refresh the page everytime i make a change to a userscript