Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Topic Options
#331604 - 31/03/2010 20:52 Something like "noscript", except different?
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14494
Loc: Canada
I need a plugin for firefox, like "noscript".

Except, instead of blocking scripts from everywhere by default, I want it to *allow* scripts by default, and block them only from a specific site.

Ideas?

Top
#331605 - 31/03/2010 21:10 Re: Something like "noscript", except different? [Re: mlord]
Robotic
pooh-bah

Registered: 06/04/2005
Posts: 2026
Loc: Seattle transplant
Have you checked through the Greasemonkey community?
_________________________
10101311 (20GB- backup empeg)
10101466 (2x60GB, Eutronix/GreenLights Blue) (Stolen!)

Top
#331609 - 31/03/2010 22:29 Re: Something like "noscript", except different? [Re: mlord]
canuckInOR
carpal tunnel

Registered: 13/02/2002
Posts: 3212
Loc: Portland, OR
NoScript is GPL'd, so you can monkey with the source. Maybe you can just invert the whitelist into a blacklist?

Top
#331610 - 31/03/2010 23:39 Re: Something like "noscript", except different? [Re: mlord]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14494
Loc: Canada
Originally Posted By: mlord
instead of blocking scripts from everywhere by default, I want it to *allow* scripts by default, and block them only from a specific site.\

Okay, found it: yesscript (instead of noscript).

Works like a charm.

Now.. how about a similar plug-in to selectively block specific URLs? You'd think Adblock+ could do this, but it cannot.

I want to block (only) a specific .jpg image from the same site.

???

Top
#331611 - 01/04/2010 00:06 Re: Something like "noscript", except different? [Re: mlord]
tman
carpal tunnel

Registered: 24/12/2001
Posts: 5528
Originally Posted By: mlord
Okay, found it: yesscript (instead of noscript).

Works like a charm.

Now.. how about a similar plug-in to selectively block specific URLs? You'd think Adblock+ could do this, but it cannot.

I want to block (only) a specific .jpg image from the same site.

Adblock does that for me? I've used it to block a specific JPG and specific Javascript files.

Top
#331616 - 01/04/2010 10:26 Re: Something like "noscript", except different? [Re: tman]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14494
Loc: Canada
Quote:
Originally Posted By: tman
I want to block (only) a specific .jpg image from the same site.

Adblock does that for me? I've used it to block a specific JPG and specific Javascript files.

How? Do tell.

See.. adblock+ blocks other stuff from the same site. If I tell adblock+ to not do that ("whitelist"), then it blocks NOTHING.

It seems to lack a way to block just one specific .jpg.


Edited by mlord (01/04/2010 10:26)

Top
#331617 - 01/04/2010 10:44 Re: Something like "noscript", except different? [Re: mlord]
tman
carpal tunnel

Registered: 24/12/2001
Posts: 5528
Originally Posted By: mlord
See.. adblock+ blocks other stuff from the same site. If I tell adblock+ to not do that ("whitelist"), then it blocks NOTHING.

It seems to lack a way to block just one specific .jpg.

When I right click an image and then select Adblock Image, the first option is a complete URL including filename and it only blocks that specific file. Other files on the site don't get affected.

I think I know what you mean now. The site you want is normally blocked by the Adblock filters and you want to whitelist the site but only block a specific image? In that case then I don't think it'd do what you mean.

Top
#331618 - 01/04/2010 10:51 Re: Something like "noscript", except different? [Re: tman]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14494
Loc: Canada
Originally Posted By: tman
I think I know what you mean now. The site you want is normally blocked by the Adblock filters and you want to whitelist the site but only block a specific image? In that case then I don't think it'd do what you mean.

Yup, that's the problem. So I need an opt-in version of Adblock+, similar to how yesscript is the opposite of noscript.

The site in question is http://www.digitalhome.ca, which is run by an obsessive nanny type from Toronto. Yesterday, he installed a scripting system to prevent viewing of the forum posts by anyone using Firefox/Adblock+, in a rude attempt to piss off his content creators (users).

So, now I whitelist the site in Adblock+, and use yesscript to get rid of his incredibly annoying flash adverts. But there's still one small image advert I'd like to nuke.

Cheers

Top
#331619 - 01/04/2010 12:07 Re: Something like "noscript", except different? [Re: mlord]
tman
carpal tunnel

Registered: 24/12/2001
Posts: 5528
The site has the forum thread inside a massive div called Ad1 which is why it disappears when Adblock is enabled. I thought you could make it whitelist that specific site and that specific div but it doesn't seem to do it for me when I tried. Hmm...

Top
#331621 - 01/04/2010 13:13 Re: Something like "noscript", except different? [Re: mlord]
wfaulk
carpal tunnel

Registered: 25/12/2000
Posts: 16706
Loc: Raleigh, NC US
Load the page with Adblock+ enabled. Right-click on the ABP icon and select "Open blockable items". Find "###Ad1", right-click on it, and select "Disable filter ###Ad1". Now right-click on the ABP icon again and select "Preferences". In the new dialog, click "Add filter". Enter this filter: "~digitalhome.ca###Ad1".

What all of this does is disable the filter that's matching the content on your web site, then re-add the same filter, except telling it to do it everywhere except digitalhome.ca.

Unfortunately, it doesn't appear that Adblock supports element exception rules.
_________________________
Bitt Faulk

Top
#331622 - 01/04/2010 13:14 Re: Something like "noscript", except different? [Re: tman]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14494
Loc: Canada
Mmm.. thanks for the hint. I'll have a look at that div later.

Cheers

Top