mirror of https://github.com/gorhill/uBlock.git
updated forbes-defuser.js
This commit is contained in:
parent
c40bb60f6f
commit
0862e0a56d
|
@ -5,7 +5,7 @@ a79f4ceb3bc197dcbe437f44af375bbd assets/ublock/filters.txt
|
||||||
146704ad1c0393e342afdb416762c183 assets/ublock/badware.txt
|
146704ad1c0393e342afdb416762c183 assets/ublock/badware.txt
|
||||||
5baa90e2da7cd6a73edff2010557ee57 assets/ublock/redirect.txt
|
5baa90e2da7cd6a73edff2010557ee57 assets/ublock/redirect.txt
|
||||||
f9bb491dbba453752199e8378ee152bb assets/ublock/experimental.txt
|
f9bb491dbba453752199e8378ee152bb assets/ublock/experimental.txt
|
||||||
67ddf6f042de8c352ff324351aefd5c0 assets/ublock/resources.txt
|
84d7c7008ec4f8648fb0ca6a564ae6e1 assets/ublock/resources.txt
|
||||||
66229baa2c66a144eb87a5420ad64bc5 assets/ublock/filter-lists.json
|
66229baa2c66a144eb87a5420ad64bc5 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
|
||||||
|
|
|
@ -417,18 +417,35 @@ forbes-defuser.js application/javascript
|
||||||
if ( !window.location.pathname.startsWith('/forbes/welcome/') ) {
|
if ( !window.location.pathname.startsWith('/forbes/welcome/') ) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if ( typeof window.fbs_settings === 'object' ) {
|
var noopfn = function() {
|
||||||
window.fbs_settings.classes = 'W10=';
|
;
|
||||||
window.fbs_settings.mobile = 'true';
|
};
|
||||||
return;
|
var odp = Object.defineProperty;
|
||||||
}
|
var wad, wadm, abc = function() {};
|
||||||
Object.defineProperty(window, 'fbs_settings', {
|
var abcp = abc.prototype;
|
||||||
value: {
|
abcp.addCheck = abcp.check = abcp.initialize =
|
||||||
classes: 'W10=',
|
abcp.removeCheck = abcp.triggerAdBlockState = noopfn;
|
||||||
data: {
|
abcp.getAdBlockState = function() {
|
||||||
title: ''
|
return false;
|
||||||
},
|
};
|
||||||
mobile: 'true'
|
odp(window, 'WelcomeAd', {
|
||||||
|
get: function() { return wad; },
|
||||||
|
set: function(a) {
|
||||||
|
wad = a;
|
||||||
|
odp(a, 'Modules', {
|
||||||
|
get: function() { return wadm; },
|
||||||
|
set: function(a) {
|
||||||
|
wadm = a;
|
||||||
|
if ( a.AdBlockChecker ) {
|
||||||
|
a.AdBlockChecker = abc;
|
||||||
|
} else {
|
||||||
|
odp(a, 'AdBlockChecker', {
|
||||||
|
get: function() { return abc; },
|
||||||
|
set: function() {}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
})();
|
})();
|
||||||
|
|
Loading…
Reference in New Issue