User script only work when site/page is allowed

Bug reports and enhancement requests
Post Reply
papa_san
Posts: 1
Joined: Sun May 05, 2019 9:26 am

User script only work when site/page is allowed

Post by papa_san » Sun May 05, 2019 9:46 am

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.
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:66.0) Gecko/20100101 Firefox/66.0

User avatar
therube
Ambassador
Posts: 7455
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

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

Post by therube » 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).

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

(In the case of NoScript & Chrome, the site does not need to be allowed.)
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball NoScript FlashGot AdblockPlus
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:52.0) Gecko/20100101 Firefox/52.0 SeaMonkey/2.49.5

barbaz
Senior Member
Posts: 9262
Joined: Sat Aug 03, 2013 5:45 pm

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

Post by barbaz » Sun May 05, 2019 2:28 pm

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
*Always* check the changelogs BEFORE updating that important software!
-

Post Reply