Created
November 29, 2017 12:12
-
-
Save ptomasroos/39070d1799addecd5b3288e5bc85068e to your computer and use it in GitHub Desktop.
uBlock GPT base64 object
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
var p; | |
// https://developers.google.com/doubleclick-gpt/reference | |
var noopfn = function() {; | |
}.bind(); | |
var noopthisfn = function() { | |
return this; | |
}; | |
var noopnullfn = function() { | |
return null; | |
}; | |
var nooparrayfn = function() { | |
return []; | |
}; | |
var noopstrfn = function() { | |
return ''; | |
}; | |
// | |
var companionAdsService = { | |
addEventListener: noopthisfn, | |
enableSyncLoading: noopfn, | |
setRefreshUnfilledSlots: noopfn | |
}; | |
var contentService = { | |
addEventListener: noopthisfn, | |
setContent: noopfn | |
}; | |
var PassbackSlot = function() {; | |
}; | |
p = PassbackSlot.prototype; | |
p.display = noopfn; | |
p.get = noopnullfn; | |
p.set = noopthisfn; | |
p.setClickUrl = noopthisfn; | |
p.setTagForChildDirectedTreatment = noopthisfn; | |
p.setTargeting = noopthisfn; | |
p.updateTargetingFromMap = noopthisfn; | |
var pubAdsService = { | |
addEventListener: noopthisfn, | |
clear: noopfn, | |
clearCategoryExclusions: noopthisfn, | |
clearTagForChildDirectedTreatment: noopthisfn, | |
clearTargeting: noopthisfn, | |
collapseEmptyDivs: noopfn, | |
defineOutOfPagePassback: function() { | |
return new PassbackSlot(); | |
}, | |
definePassback: function() { | |
return new PassbackSlot(); | |
}, | |
disableInitialLoad: noopfn, | |
display: noopfn, | |
enableAsyncRendering: noopfn, | |
enableSingleRequest: noopfn, | |
enableSyncRendering: noopfn, | |
enableVideoAds: noopfn, | |
get: noopnullfn, | |
getAttributeKeys: nooparrayfn, | |
getTargeting: noopfn, | |
getTargetingKeys: nooparrayfn, | |
getSlots: nooparrayfn, | |
refresh: noopfn, | |
set: noopthisfn, | |
setCategoryExclusion: noopthisfn, | |
setCentering: noopfn, | |
setCookieOptions: noopthisfn, | |
setForceSafeFrame: noopthisfn, | |
setLocation: noopthisfn, | |
setPublisherProvidedId: noopthisfn, | |
setSafeFrameConfig: noopthisfn, | |
setTagForChildDirectedTreatment: noopthisfn, | |
setTargeting: noopthisfn, | |
setVideoContent: noopthisfn, | |
updateCorrelator: noopfn | |
}; | |
var SizeMappingBuilder = function() {; | |
}; | |
p = SizeMappingBuilder.prototype; | |
p.addSize = noopthisfn; | |
p.build = noopnullfn; | |
var Slot = function() {; | |
}; | |
p = Slot.prototype; | |
p.addService = noopthisfn; | |
p.clearCategoryExclusions = noopthisfn; | |
p.clearTargeting = noopthisfn; | |
p.defineSizeMapping = noopthisfn; | |
p.get = noopnullfn; | |
p.getAdUnitPath = nooparrayfn; | |
p.getAttributeKeys = nooparrayfn; | |
p.getCategoryExclusions = nooparrayfn; | |
p.getDomId = noopstrfn; | |
p.getSlotElementId = noopstrfn; | |
p.getSlotId = noopthisfn; | |
p.getTargeting = nooparrayfn; | |
p.getTargetingKeys = nooparrayfn; | |
p.set = noopthisfn; | |
p.setCategoryExclusion = noopthisfn; | |
p.setClickUrl = noopthisfn; | |
p.setCollapseEmptyDiv = noopthisfn; | |
p.setTargeting = noopthisfn; | |
// | |
var gpt = window.googletag || {}; | |
var cmd = gpt.cmd || []; | |
gpt.apiReady = true; | |
gpt.cmd = []; | |
gpt.cmd.push = function(a) { | |
try { | |
a(); | |
} catch (ex) {} | |
return 1; | |
}; | |
gpt.companionAds = function() { | |
return companionAdsService; | |
}; | |
gpt.content = function() { | |
return contentService; | |
}; | |
gpt.defineOutOfPageSlot = function() { | |
return new Slot(); | |
}; | |
gpt.defineSlot = function() { | |
return new Slot(); | |
}; | |
gpt.destroySlots = noopfn; | |
gpt.disablePublisherConsole = noopfn; | |
gpt.display = noopfn; | |
gpt.enableServices = noopfn; | |
gpt.getVersion = noopstrfn; | |
gpt.pubads = function() { | |
return pubAdsService; | |
}; | |
gpt.pubadsReady = true; | |
gpt.setAdIframeTitle = noopfn; | |
gpt.sizeMapping = function() { | |
return new SizeMappingBuilder(); | |
}; | |
window.googletag = gpt; | |
while (cmd.length !== 0) { | |
gpt.cmd.push(cmd.shift()); | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment