Add a feature to allow a specific script but only on a specific site

This issue has been tracked since 2021-04-05.

There are a few websites that have their own JS that I may want to allow to run when I'm on that website, but want to block when it's present in another website. For example, if I want to watch a Youtube video I may want to enable Youtube's JS (set it to trusted), but I don't necessarily want that JS running on any webpage that embeds a Youtube video. Even more directly, I've noticed that a lot of Google domains (e.g. often literally "google.com") are present all over, so I don't want this JS to run on random websites, but if I'm actually on a Google site then I do want it to run. I suggest adding a "trusted on this domain only" option alongside "unstrusted," "default," "temporarily trusted," and "trusted."

KOLANICH wrote this answer on 2021-04-05

For example, if I want to watch a Youtube video I may want to enable Youtube's JS (set it to trusted)

Just wait a day. I have written a surrogate userscript that would allkw you to use YouTube without any their JS.

There are a few websites that have their own JS that I may want to allow to run when I'm on that website, but want to block when it's present in another website.

We need to integrate the features of noscript into umatrix and discard noscript.

hackademix wrote this answer on 2021-04-05
12

I suggest adding a "trusted on this domain only" option alongside "unstrusted," "default," "temporarily trusted," and "trusted."

Contextual permissions are actually planned and work is undergoing: the back-end is already there, the UI may be ready by this summer.

alkarkhi wrote this answer on 2021-04-17

@hackademix Is this going to be for both "trusted on this domain only" and "temporarily trusted on this domain only"?

hackademix wrote this answer on 2021-04-17

@hackademix Is this going to be for both "trusted on this domain only" and "temporarily trusted on this domain only"?

"For this domain only" in the popup is gonna be a checkbox option inside the sub-panel for the CUSTOM setting (which you can configured either as TRUSTy or UNTRUSTy, temporary or permanent).
In the NoScript options tab this won't be a checkbox but a domain selector, which you can use to switch between the CUSTOM settings for each domain, to configure or remove them.

alkarkhi wrote this answer on 2021-04-18

Sounds great

chayleaf wrote this answer on 2021-09-26

@hackademix any update on this? not to rush you of course, I just wanted to know the current status, seeing as you said it might be done by summer...

hackademix wrote this answer on 2021-09-26

@hackademix any update on this?
I had to delay the work on this a bit because of overlapping projects involving the NoScript Commons Library, JShelter (AKA JS Restrictor) and CSS PP0.
I should be able to get back to it in October, and hopefully deliver by the end of the year.

More Details About Repo
Owner Name hackademix
Repo Name noscript
Full Name hackademix/noscript
Language JavaScript
Created Date 2018-06-30
Updated Date 2023-01-29
Star Count 599
Watcher Count 21
Fork Count 80
Issue Count 155

YOU MAY BE INTERESTED

Issue Title Created Date Updated Date