defusing request by forbes.com to disable blocker

This commit is contained in:
gorhill 2015-12-31 12:05:18 -05:00
parent ea213378c1
commit cf9c7af428
3 changed files with 29 additions and 7 deletions

View File

@ -1,11 +1,11 @@
63edf93987a8d64ccd1ebf9af940d61d assets/ublock/unbreak.txt
62111a29f0a5cb361ba8dbae92054adb assets/ublock/redirect-resources.txt
6c077d6d5b39e8a5a407966ad62c9c32 assets/ublock/privacy.txt
d4019cde5d2e852d08127fdfa2585872 assets/ublock/filters.txt
6f9e1f139803c5714d9f0e5c49084430 assets/ublock/filters.txt
146704ad1c0393e342afdb416762c183 assets/ublock/badware.txt
5baa90e2da7cd6a73edff2010557ee57 assets/ublock/redirect.txt
890e6b30c6a4cfd2ac5aa1bbe36d30fe assets/ublock/experimental.txt
42bf6b936b33ba0f7bb03a87dbd40160 assets/ublock/resources.txt
42d03f7f886f8f43a4feb688e15ee7ff assets/ublock/resources.txt
86c0502f610903b90504a7ad821550a6 assets/ublock/filter-lists.json
50573388b525ede1a920cd4b4ee7fbf0 assets/thirdparties/easylist-downloads.adblockplus.org/easyprivacy.txt
61cc16cf02e034370f0f47bc17c46551 assets/thirdparties/easylist-downloads.adblockplus.org/easylist.txt

View File

@ -250,3 +250,6 @@ extremetube.com,pornhub.com,primewire.*,redtube.com,spankwire.com,tube8.com,tube
# https://github.com/gorhill/uBlock/issues/1136
||dailymotion.com/ac/video/$image,first-party,redirect=2x2-transparent.png
# https://news.ycombinator.com/item?id=10814913
forbes.com##script:inject(forbes-defuser.js)

View File

@ -15,12 +15,13 @@ R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
2x2-transparent.png image/png;base64
iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAC0lEQVQI12NgQAcAABIAAe+JVKQAAAAASUVORK5CYII=
iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAC0lEQVQI12NgQAcAABIAAe+JVKQAAAAA
SUVORK5CYII=
# Obsolete: to be removed -- need to stick to sensible resource names
handtinytrans.gif image/gif;base64
R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
32x32-transparent.png image/png;base64
iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAGklEQVRYw+3BAQEAAACCIP+vbkhAAQAA
AO8GECAAAZf3V9cAAAAASUVORK5CYII=
noopcss text/css
@ -46,7 +47,14 @@ var L = (function(){
var noopfn = function() {
;
};
var props = ["pf", "ed", "Qe", "fd", "xh", "Uc", "ef", "zd", "Ad", "Qc", "Ri", "Wc", "Vc", "Xc", "Wg", "rd", "qd", "sd", "Pe", "Id", "Hd", "Jd", "fg", "Fd", "Ed", "Gd", "ek", "Cd", "Bd", "Dd", "Nj", "Sc", "Rc", "Tc", "wg", "xd", "wd", "yd", "fh", "ld", "md", "nd", "Re", "cd", "Pc", "ke", "Yc", "Xg", "jd", "kd", "oh", "ad", "bd", "mi", "gd", "hd", "ae", "dd", "fk", "ij", "ud", "td", "vd", "ig", "od", "pd", "Yd", "$j", "Oc", "bf"];
var props = [
"pf", "ed", "Qe", "fd", "xh", "Uc", "ef", "zd", "Ad", "Qc", "Ri", "Wc",
"Vc", "Xc", "Wg", "rd", "qd", "sd", "Pe", "Id", "Hd", "Jd", "fg", "Fd",
"Ed", "Gd", "ek", "Cd", "Bd", "Dd", "Nj", "Sc", "Rc", "Tc", "wg", "xd",
"wd", "yd", "fh", "ld", "md", "nd", "Re", "cd", "Pc", "ke", "Yc", "Xg",
"jd", "kd", "oh", "ad", "bd", "mi", "gd", "hd", "ae", "dd", "fk", "ij",
"ud", "td", "vd", "ig", "od", "pd", "Yd", "$j", "Oc", "bf"
];
for (var i = 0; i < props.length; i++) {
l[props[i]] = noopfn;
}
@ -286,3 +294,14 @@ pornhub-popup-defuser.js application/javascript
db.setItem('InfNumFastPopsExpire', expire);
}
})();
# https://news.ycombinator.com/item?id=10814913
forbes-defuser.js application/javascript
(function() {
var then = new Date(Date.now() + 60000);
var expire = then.toString();
document.cookie = 'dailyWelcomeCookie=true; expires=' + expire;
document.cookie = 'forbes_ab=false; expires=' + expire;
document.cookie = 'global_ad_params={}; expires=' + expire;
})();