Enable scripts for domain only on that domain?

Ask for help about NoScript, no registration needed to post
Brian_
Posts: 11
Joined: Sun Nov 16, 2014 9:47 pm

Enable scripts for domain only on that domain?

Post by Brian_ »

Can you enable scripts for a domain only on that domain, but not on other domains?
ie. Enable youtube only on youtube.com and facebook only on facebook.com, but not on other pages.
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:52.9) Gecko/20100101 Goanna/3.4 Firefox/52.9 PaleMoon/27.6.2
barbaz
Senior Member
Posts: 10847
Joined: Sat Aug 03, 2013 5:45 pm

Re: Enable scripts for domain only on that domain?

Post by barbaz »

Since your user agent says Pale Moon, I assume you're talking about NoScript Classic.

FAQ 8.10
*Always* check the changelogs BEFORE updating that important software!
-
Brian_
Posts: 11
Joined: Sun Nov 16, 2014 9:47 pm

Re: Enable scripts for domain only on that domain?

Post by Brian_ »

It's NoScript 5.0.6. Doesn't say Classic anywhere.

After thinking about it more, I only want to disable on a certain page, instead of everywhere else except the original domains (as I said originally).
I looked through the examples in the FAQ, and linked ABE page from there, but none do this.

ie. Say if I want to disable facebook on google.com (just an example)

I want to do something like this:
Site facebook.com
Deny google.com

But Deny doesn't seem to accept an argument. What's the syntax for this?
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:52.9) Gecko/20100101 Goanna/3.4 Firefox/52.9 PaleMoon/27.6.2
Pansa
Senior Member
Posts: 318
Joined: Fri Nov 24, 2017 10:30 pm

Re: Enable scripts for domain only on that domain?

Post by Pansa »

Brian_ wrote:It's NoScript 5.0.6. Doesn't say Classic anywhere.

After thinking about it more, I only want to disable on a certain page, instead of everywhere else except the original domains (as I said originally).
I looked through the examples in the FAQ, and linked ABE page from there, but none do this.

ie. Say if I want to disable facebook on google.com (just an example)

I want to do something like this:
Site facebook.com
Deny google.com

But Deny doesn't seem to accept an argument. What's the syntax for this?
"deny" accepts the same arguments as "accept"
You just have to be specific about how the domain is phrased (per the examples)
and would need specifically a solitary "accept" at the end to make it accept everything else. (like in the examples the solitary "deny" at the end.)

here is the full docu, found in the abe docs from the faq.
https://noscript.net/abe/abe_rules.pdf
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0
barbaz
Senior Member
Posts: 10847
Joined: Sat Aug 03, 2013 5:45 pm

Re: Enable scripts for domain only on that domain?

Post by barbaz »

Brian_ wrote:It's NoScript 5.0.6.
So, yes, you do have NoScript Classic.
Brian_ wrote:Say if I want to disable facebook on google.com (just an example)

[...] What's the syntax for this?
Well, "facebook" is a bit vague. The simple version would look like this -

Code: Select all

Site .facebook.com .facebook.net
Deny INC from .google.com
If you're aiming to cover *all* facebook domains with your ABE rule, you would need a Site line more like the one in https://forums.informaction.com/viewtop ... 371#p75371
*Always* check the changelogs BEFORE updating that important software!
-
Brian_
Posts: 11
Joined: Sun Nov 16, 2014 9:47 pm

Re: Enable scripts for domain only on that domain?

Post by Brian_ »

barbaz wrote: Well, "facebook" is a bit vague. The simple version would look like this -

Code: Select all

Site .facebook.com .facebook.net
Deny INC from .google.com
If you're aiming to cover *all* facebook domains with your ABE rule, you would need a Site line more like the one in https://forums.informaction.com/viewtop ... 371#p75371
Thanks a lot. I had the sites/statements backwards. I wouldn't need to block all facebook domains, just one(s) that I can see the page loading, and slowing it down. I ended up blocking facebook, youtube and gstatic and the page loads in a fraction of the time now, and nothning is missing that I need.
BTW I had read the FAQ, but it didn't seem have an example like this.
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:52.9) Gecko/20100101 Goanna/3.4 Firefox/52.9 PaleMoon/27.6.2
Post Reply