mirror of
https://github.com/gorhill/uBlock.git
synced 2024-09-01 16:49:39 +02:00
reworked dm script to catch exceptions
This commit is contained in:
parent
f81b07fb4d
commit
64e9eb7aae
@ -5,7 +5,7 @@ f914118b301509f92d16ab099d4287ee assets/ublock/filters.txt
|
|||||||
146704ad1c0393e342afdb416762c183 assets/ublock/badware.txt
|
146704ad1c0393e342afdb416762c183 assets/ublock/badware.txt
|
||||||
5baa90e2da7cd6a73edff2010557ee57 assets/ublock/redirect.txt
|
5baa90e2da7cd6a73edff2010557ee57 assets/ublock/redirect.txt
|
||||||
a2c0edc2da6a2ba591d83f9a105a8401 assets/ublock/experimental.txt
|
a2c0edc2da6a2ba591d83f9a105a8401 assets/ublock/experimental.txt
|
||||||
73eb60d28f8a7fe9a39607d3fd07933c assets/ublock/resources.txt
|
5dff8336dcc5de9b6651f7deca3d5b39 assets/ublock/resources.txt
|
||||||
b27de2300e02598f6a6ec4065d1d5a53 assets/ublock/filter-lists.json
|
b27de2300e02598f6a6ec4065d1d5a53 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
|
||||||
|
@ -527,8 +527,11 @@ openload-defuser.js application/javascript
|
|||||||
var noopfn = function() {
|
var noopfn = function() {
|
||||||
;
|
;
|
||||||
};
|
};
|
||||||
var makefn = function(a) {
|
var wjdmpGet = function() {
|
||||||
return function(r, o) {
|
return wjdmp;
|
||||||
|
};
|
||||||
|
var wjdmpSet = function(a) {
|
||||||
|
wjdmp = function(r, o) {
|
||||||
if ( r.length === 1 && r[0] === 4 ) {
|
if ( r.length === 1 && r[0] === 4 ) {
|
||||||
for ( var k in o ) {
|
for ( var k in o ) {
|
||||||
if ( o.hasOwnProperty(k) && typeof o[k] === 'function' ) {
|
if ( o.hasOwnProperty(k) && typeof o[k] === 'function' ) {
|
||||||
@ -541,12 +544,8 @@ openload-defuser.js application/javascript
|
|||||||
};
|
};
|
||||||
try {
|
try {
|
||||||
Object.defineProperty(window, 'webpackJsonpdmp', {
|
Object.defineProperty(window, 'webpackJsonpdmp', {
|
||||||
get: function() {
|
get: wjdmpGet,
|
||||||
return wjdmp;
|
set: wjdmpSet
|
||||||
},
|
|
||||||
set: function(a) {
|
|
||||||
wjdmp = makefn(a);
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
} catch(ex) {
|
} catch(ex) {
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user