Page 1 of 1

User script only work when site/page is allowed

Posted: Sun May 05, 2019 9:46 am
by papa_san
According to the FAQ it should be possible to use user-scripts.

It mentions GreaseMonkey, I assume TamperMonkey will be similar.
The wording is not very explicit, but they do suggest it should be possible to run a user-script on http://forums.mozillazine.org, without allowing the site.
It doesn't seem to work for me, with NoScript stopping scripts from their forum.
Must be doing something wrong, or I did not understand the wording.

For various sites, I would like to run MY scripts, not theirs.

So my questions:
* Can I run a user-script when the site on which this runs, is NOT allowed in NoScript ?
* If no, is it technically possible to run local (user) scripts, while blocking the scripts from the site ?
* if yes, can you foresee to implement this functionality ?

All this of course with the latest NoScript, and Firefox ESR 60.6.1.

Re: User script only work when site/page is allowed

Posted: Sun May 05, 2019 10:27 am
by therube
without allowing the site
In the case of NoScript 10 & FF, the site does need to be allowed (unfortunately).

Allow Violentmonkey scripts
viewtopic.php?f=10&t=24374

(In the case of NoScript & Chrome, the site does not need to be allowed.)

Re: User script only work when site/page is allowed

Posted: Sun May 05, 2019 2:28 pm
by barbaz
therube wrote:
Sun May 05, 2019 10:27 am
without allowing the site
In the case of NoScript 10 & FF, the site does need to be allowed (unfortunately).
Not if the OP is using Violentmonkey.

@papa_san: You need to set your user script to inject-into content or auto. More info: https://violentmonkey.github.io/api/met ... nject-into