Page 1 of 1

Surrogate for www.googletagservices.com

Posted: Sun Jun 08, 2014 1:53 am
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.

Re: Surrogate for www.googletagservices.com

Posted: Sun Jun 08, 2014 3:02 am
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.

Re: Surrogate for www.googletagservices.com

Posted: Sun Jun 08, 2014 8:24 pm
by Giorgio Maone
Done in latest development build 2.6.8.29rc1, thanks.