Edit scripts locally. Works with Firefox with 1 reload. #1804
rRobis
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm still experimenting with this new technique, and it seems that it's working (at least in my case). I make changes, save, refresh, and in firefox it gets changes on first reload.
Maybe someone finds this useful.
I created a node.js server, that runs with nodemon like this:
In this app.js i have contents like this:
And in the tampermonkey script i have it like this:
The minified code is :
Basically it makes request to the endpoint and gets the combined script text and evaluates it, after the page has loaded
Beta Was this translation helpful? Give feedback.
All reactions