Page 1 of 2
surrogate for scorecardresearch.com
Posted: Sat Aug 02, 2014 6:48 pm
by Dorus
I'm not sure if this is the right place to ask, but anyway, i need a script surrogate, and i'm a completely noob at javascript, so some help would be nice.
Simply visiting a site that has scoredresearch as (i think) advertisement, gives a annoying 'popup' when javascript is disabled. Many dutch and belgium newspapers have this.
For example:
http://www.bndestem.nl/
http://www.gelderlander.nl/
Re: surrogate for scorecardresearch.com
Posted: Sat Aug 02, 2014 6:51 pm
by barbaz
Do you use Adblock Plus or one of its forks?
Re: surrogate for scorecardresearch.com
Posted: Sat Aug 02, 2014 6:52 pm
by Dorus
no, i use no-script. I'm on the right forum i hope?
Re: surrogate for scorecardresearch.com
Posted: Sat Aug 02, 2014 6:57 pm
by barbaz
Yeah, just that those things are a lot easier to zap with ABP. There is likely no global "catch-all" surrogate for zapping those. For your second link, try this
Code: Select all
for (let e of document.querySelectorAll('.dialog-no-script')){e.parentNode.removeChild(e);}
Re: surrogate for scorecardresearch.com
Posted: Sat Aug 02, 2014 6:58 pm
by barbaz
Oh, forgot to add that the sources pref is
Re: surrogate for scorecardresearch.com
Posted: Sat Aug 02, 2014 7:01 pm
by Dorus
Thanks, that's something at least. I was under the impression script surrogates worked for target domains, not per-site that include a certain domain. Like you don't need one for every website that uses google-analytics either.
Anyway, scoredresearch has been bothering me for some time now, as you have to allow it for a easy way to get rid of the lay-over, but looking at the WoT and google reputation for that site, it's spreading male ware quite frequent.
Re: surrogate for scorecardresearch.com
Posted: Sat Aug 02, 2014 7:04 pm
by barbaz
Dorus wrote:Thanks, that's something at least. I was under the impression script surrogates worked for target domains, not per-site that include a certain domain.
Actually it's both, depending the sources pref. Documentation
here.
Dorus wrote:Anyway, scoredresearch has been bothering me for some time now, as you have to allow it for a easy way to get rid of the lay-over, but looking at the WoT and google reputation for that site, it's spreading male ware quite frequent.
Maybe play around with NoScript Options -> Trusted -> Show the NOSCRIPT... ?
Re: surrogate for scorecardresearch.com
Posted: Sat Aug 02, 2014 7:11 pm
by Dorus
barbaz wrote:Dorus wrote:Anyway, scoredresearch has been bothering me for some time now, as you have to allow it for a easy way to get rid of the lay-over, but looking at the WoT and google reputation for that site, it's spreading male ware quite frequent.
Maybe play around with NoScript Options -> Trusted -> Show the NOSCRIPT... ?
No luck there.
Also, this surrogate fails when gelderlander.nl is allowed, but scorecardresearch.com is not, a situation i would prefer normally.
Re: surrogate for scorecardresearch.com
Posted: Sat Aug 02, 2014 7:18 pm
by barbaz
sources pref edited above
Re: surrogate for scorecardresearch.com
Posted: Sat Aug 02, 2014 7:22 pm
by Dorus
Both !@.gelderlander.nl and !.gelderlander.nl worked just fine as long as gelderlander.nl is blocked, but not when gelderlander.nl is allowed and b.scorecardresearch.com is still blocked.
Re: surrogate for scorecardresearch.com
Posted: Sat Aug 02, 2014 7:27 pm
by barbaz
Weird, with !@ and only gelderlander.nl allowed the massive overlay is gone here...
Re: surrogate for scorecardresearch.com
Posted: Sat Aug 02, 2014 7:29 pm
by Dorus
Perhapts it's one of the other pages i also allowed?
facebook.com
twitter.com
twimg.com
akamaihd.net edit: nope, that's not it either.
Anyway, i have it working with:
Still hoping to find a way to run it for scorecardresearch.com instead.
Re: surrogate for scorecardresearch.com
Posted: Sat Aug 02, 2014 8:59 pm
by barbaz
Dorus wrote:Still hoping to find a way to run it for scorecardresearch.com instead.
Try this?
Code: Select all
if (window.location.hostname.endsWith(".gelderlander.nl") || window.location.hostname == "gelderlander.nl"){window.addEventListener("load", function(){for (let e of document.querySelectorAll('.dialog-no-script')){e.parentNode.removeChild(e);}}, false);}
sources:
Note that gelderlander.nl *must* be allowed for this to run.
Re: surrogate for scorecardresearch.com
Posted: Sat Aug 02, 2014 10:43 pm
by Dorus
That works like a charm

Wonderfull.
I am thinking, what stops me from just using:
Code: Select all
window.addEventListener("load", function(){for (let e of document.querySelectorAll('.dialog-no-script')){e.parentNode.removeChild(e);}}, false);
A quick test shows this works on other websites also. I'm not expecting many problems since most websites dont include scoreresearch right?
Re: surrogate for scorecardresearch.com
Posted: Sat Aug 02, 2014 11:06 pm
by barbaz
I included the domain check because it's possible other sites which include scripts from scorecardresearch might have elements with class "dialog-no-script" that you actually *want* to see. You can remove it if you want, but be ready for false positives.