Page 1 of 1

Enable scripts for domain only on that domain?

Posted: Thu Nov 30, 2017 9:58 pm
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.

Re: Enable scripts for domain only on that domain?

Posted: Thu Nov 30, 2017 9:58 pm
by barbaz
Since your user agent says Pale Moon, I assume you're talking about NoScript Classic.

FAQ 8.10

Re: Enable scripts for domain only on that domain?

Posted: Thu Nov 30, 2017 10:54 pm
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?

Re: Enable scripts for domain only on that domain?

Posted: Fri Dec 01, 2017 12:23 am
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

Re: Enable scripts for domain only on that domain?

Posted: Fri Dec 01, 2017 1:06 am
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

Re: Enable scripts for domain only on that domain?

Posted: Fri Dec 08, 2017 8:21 pm
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.