re. #1461: fiddling

This commit is contained in:
gorhill 2016-03-14 11:29:26 -04:00
parent 5019adee0f
commit 09316bbffc
2 changed files with 9 additions and 50 deletions

View file

@ -5,7 +5,7 @@ dcc881135f01d1e264c2be59a8aaa1e0 assets/ublock/filters.txt
98088252cedafb8571cf61b91bea219e assets/ublock/badware.txt 98088252cedafb8571cf61b91bea219e assets/ublock/badware.txt
5baa90e2da7cd6a73edff2010557ee57 assets/ublock/redirect.txt 5baa90e2da7cd6a73edff2010557ee57 assets/ublock/redirect.txt
d81312866b351765bb63082274d90293 assets/ublock/experimental.txt d81312866b351765bb63082274d90293 assets/ublock/experimental.txt
b237e72eceeaf94ea94736d9c506e4b8 assets/ublock/resources.txt cc7dcacff92175c510ac463f9db8f952 assets/ublock/resources.txt
059e0bfbf22bd242dda7b07389fe09a2 assets/ublock/filter-lists.json 059e0bfbf22bd242dda7b07389fe09a2 assets/ublock/filter-lists.json
3605c73f21abca428c7eb69a8bc32dfe assets/thirdparties/easylist-downloads.adblockplus.org/easyprivacy.txt 3605c73f21abca428c7eb69a8bc32dfe assets/thirdparties/easylist-downloads.adblockplus.org/easyprivacy.txt
a91af77c47c302c0741c7445b0fada1a assets/thirdparties/easylist-downloads.adblockplus.org/easylist.txt a91af77c47c302c0741c7445b0fada1a assets/thirdparties/easylist-downloads.adblockplus.org/easylist.txt

View file

@ -838,53 +838,12 @@ disqus.com/embed.js application/javascript
# https://github.com/gorhill/uBlock/issues/1461 # https://github.com/gorhill/uBlock/issues/1461
ytad-defuser.js application/javascript ytad-defuser.js application/javascript
(function() { (function() {
var ytp, ytpc; var sto = window.setTimeout;
var trapytpca = function() { window.setTimeout = function(a, b) {
if ( ytpc && ytpc.args && typeof ytpc.args.ad_slots === 'string' ) { if ( b === 15000 ) {
ytpc.args.ad_slots = '-1'; a();
ytpc.args.afv_instream_max = '500'; return;
delete ytpc.args.vmap; }
} return sto(a, b);
}; };
var trapytpc = function() {
ytpc = ytp.config;
if ( ytpc ) {
trapytpca();
return;
}
try {
Object.defineProperty(ytp, 'config', {
get: function() {
return ytpc;
},
set: function(a) {
ytpc = a;
trapytpca();
}
});
} catch (ex) {
}
};
var trapytp = function() {
ytp = window.ytplayer;
if ( ytp ) {
trapytpc();
return;
}
try {
Object.defineProperty(window, 'ytplayer', {
get: function() {
return ytp;
},
set: function(a) {
ytp = a;
if ( !a.config ) {
trapytpc();
}
}
});
} catch (ex) {
}
};
trapytp();
})(); })();