Surrogate for www.googletagservices.com

Ask for help about NoScript, no registration needed to post
Guest

Surrogate for www.googletagservices.com

Post by Guest »

The following surrogate for www.googletagservices.com/tag/js/gpt.js

Code: Select all

noscript.surrogate.gpt.sources;www.googletagservices.com
noscript.surrogate.gpt.replacement;googletag={};googletag.slots={};googletag.on=function(){};googletag.cmd={};googletag.cmd.push=function(){};googletag.enableServices=function(){};googletag.defineSlot=function(){return googletag};googletag.addService=function(){return googletag};googletag.companionAds=function(){return googletag};googletag.pubads=function(){return googletag};googletag.refresh=function(){};googletag.defineOutOfPageSlot=function(){};googletag.setTargeting=function(){};googletag.display=function(){};googletag.setRefreshUnfilledSlots=function(){};googletag.enableAsyncRendering=function(){};googletag.enableSyncRendering=function(){};googletag.enableSingleRequest=function(){};googletag.collapseEmptyDivs=function(){};
makes the navigation menu on http://www.msnbc.com/ ("Explore", "Watch", etc.) work without having to unblog the notorious tracker domain googletagservices.com.
Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Firefox/24.0
barbaz
Senior Member
Posts: 11163
Joined: Sat Aug 03, 2013 5:45 pm

Re: Surrogate for www.googletagservices.com

Post by barbaz »

At least for that site, the aforementioned surrogate can be shortened to

Code: Select all

noscript.surrogate.googletag.replacement : googletag={__noSuchMethod__:function(){return googletag},slots:{},cmd:{__noSuchMethod__:function(){}}};
noscript.surrogate.googletag.sources : .googletagservices.com
+1 for making it default.
*Always* check the changelogs BEFORE updating that important software!
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:30.0) Gecko/20100101 Firefox/30.0 SeaMonkey/2.27a2
User avatar
Giorgio Maone
Site Admin
Posts: 9557
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: Surrogate for www.googletagservices.com

Post by Giorgio Maone »

Done in latest development build 2.6.8.29rc1, thanks.
Mozilla/5.0 (Windows NT 6.3; WOW64; rv:29.0) Gecko/20100101 Firefox/29.0
Post Reply