violentmonkey / violentmonkey.github.io

Website of Violentmonkey
https://violentmonkey.github.io/
30 stars 22 forks source link

workaround for people struggling with throttling #62

Closed divinity76 closed 1 month ago

divinity76 commented 1 month ago

For me, even the "track changes" button updates too slowly to be useful while developing, where I often make a small change, save, and refresh the page in a matter of seconds.

Found a workaround.

tophf commented 1 month ago

I wouldn't recommend this method in general because it requires allowing file access to the extension, which exposes the entire file system to any userscript. In modern Chrome the preferred method of tracking is to drag the file into any Violentmonkey UI without allowing file access to the extension.

Note that in modern Chrome Violentmonkey can track the files without any delay/throttling if you enable chrome://flags/#enable-experimental-web-platform-features. I'll add this info to the documentation.

tophf commented 1 month ago

I'm open to adding a variant of your method with localhost URL, not file:, and mentioning that it'll work only for scripts that don't require the tab to be reloaded.

divinity76 commented 3 weeks ago

@tophf I think you should go for it. It can be a serious problem.