mirror of
https://github.com/gorhill/uBlock.git
synced 2024-09-02 17:19:38 +02:00
more work on neutered googletag using forbes.com as test case
This commit is contained in:
parent
794ffc899f
commit
7f4c5045a4
@ -5,7 +5,7 @@
|
|||||||
146704ad1c0393e342afdb416762c183 assets/ublock/badware.txt
|
146704ad1c0393e342afdb416762c183 assets/ublock/badware.txt
|
||||||
5baa90e2da7cd6a73edff2010557ee57 assets/ublock/redirect.txt
|
5baa90e2da7cd6a73edff2010557ee57 assets/ublock/redirect.txt
|
||||||
890e6b30c6a4cfd2ac5aa1bbe36d30fe assets/ublock/experimental.txt
|
890e6b30c6a4cfd2ac5aa1bbe36d30fe assets/ublock/experimental.txt
|
||||||
a5be71a02eb563f562bb33d23be17bac assets/ublock/resources.txt
|
54957bd768050e1503e016b1ddc0bcca assets/ublock/resources.txt
|
||||||
0a586f61b5bea73447c1bc1d46791c4c assets/ublock/filter-lists.json
|
0a586f61b5bea73447c1bc1d46791c4c assets/ublock/filter-lists.json
|
||||||
50573388b525ede1a920cd4b4ee7fbf0 assets/thirdparties/easylist-downloads.adblockplus.org/easyprivacy.txt
|
50573388b525ede1a920cd4b4ee7fbf0 assets/thirdparties/easylist-downloads.adblockplus.org/easyprivacy.txt
|
||||||
61cc16cf02e034370f0f47bc17c46551 assets/thirdparties/easylist-downloads.adblockplus.org/easylist.txt
|
61cc16cf02e034370f0f47bc17c46551 assets/thirdparties/easylist-downloads.adblockplus.org/easylist.txt
|
||||||
|
@ -211,19 +211,23 @@ googletagservices.com/gpt.js application/javascript
|
|||||||
//
|
//
|
||||||
var slot = {
|
var slot = {
|
||||||
addService: noopthisfn,
|
addService: noopthisfn,
|
||||||
|
clearTargeting: noopfn,
|
||||||
|
defineSizeMapping: noopthisfn,
|
||||||
setCategoryExclusion: noopfn,
|
setCategoryExclusion: noopfn,
|
||||||
setTargeting: noopthisfn
|
setTargeting: noopthisfn
|
||||||
};
|
};
|
||||||
var slotfn = function() {
|
var slotfn = function() { return slot; };
|
||||||
return slot;
|
|
||||||
};
|
|
||||||
//
|
//
|
||||||
var pas = {
|
var pas = {
|
||||||
addEventListener: noopfn,
|
addEventListener: noopfn,
|
||||||
clear: noopfn,
|
clear: noopfn,
|
||||||
|
collapseEmptyDivs: noopfn,
|
||||||
definePassback: noopthisfn,
|
definePassback: noopthisfn,
|
||||||
|
disableInitialLoad: noopfn,
|
||||||
display: noopfn,
|
display: noopfn,
|
||||||
|
enableSingleRequest: noopfn,
|
||||||
enableSyncRendering: noopfn,
|
enableSyncRendering: noopfn,
|
||||||
|
getSlots: function() { return []; },
|
||||||
refresh: noopfn,
|
refresh: noopfn,
|
||||||
set: noopfn,
|
set: noopfn,
|
||||||
setCategoryExclusion: noopfn,
|
setCategoryExclusion: noopfn,
|
||||||
@ -237,17 +241,27 @@ googletagservices.com/gpt.js application/javascript
|
|||||||
//
|
//
|
||||||
var gpt = window.googletag || {};
|
var gpt = window.googletag || {};
|
||||||
gpt._vars_ = gpt._vars_ || {};
|
gpt._vars_ = gpt._vars_ || {};
|
||||||
gpt.cmd = gpt.cmd || [];
|
|
||||||
gpt.display = noopfn;
|
gpt.display = noopfn;
|
||||||
gpt.defineSlot = slotfn;
|
gpt.defineSlot = slotfn;
|
||||||
gpt.defineOutOfPageSlot = slotfn;
|
gpt.defineOutOfPageSlot = slotfn;
|
||||||
gpt.enableServices = noopfn;
|
gpt.enableServices = noopfn;
|
||||||
gpt.getVersion = gpt.getVersion || noopfn;
|
gpt.getVersion = gpt.getVersion || noopfn;
|
||||||
gpt.pubads = function() {
|
gpt.pubads = function() { return pas; };
|
||||||
return pas;
|
gpt.sizeMapping = function() { return smb; };
|
||||||
};
|
//
|
||||||
gpt.sizeMapping = function() {
|
if ( Array.isArray(gpt.cmd) ) {
|
||||||
return smb;
|
gpt.cmd.forEach(function(a) {
|
||||||
|
if ( typeof a === 'function' ) {
|
||||||
|
a();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
gpt.cmd = {
|
||||||
|
push: function(a) {
|
||||||
|
if ( typeof a === 'function' ) {
|
||||||
|
a();
|
||||||
|
}
|
||||||
|
}
|
||||||
};
|
};
|
||||||
//
|
//
|
||||||
window.googletag = gpt;
|
window.googletag = gpt;
|
||||||
|
Loading…
Reference in New Issue
Block a user