Ask for help about NoScript, no registration needed to post
Guest
Post
by Guest » Sun Jun 08, 2014 1:53 am
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
Post
by barbaz » Sun Jun 08, 2014 3:02 am
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