minor code review

This commit is contained in:
gorhill 2016-01-06 12:24:44 -05:00
parent beadfee0a8
commit af2391e241
2 changed files with 9 additions and 7 deletions

View File

@ -5,7 +5,7 @@
146704ad1c0393e342afdb416762c183 assets/ublock/badware.txt
5baa90e2da7cd6a73edff2010557ee57 assets/ublock/redirect.txt
f9bb491dbba453752199e8378ee152bb assets/ublock/experimental.txt
f215de20c0944dcb286757966a233f42 assets/ublock/resources.txt
99b9e4aae529e76b402d7d2996b9e28a assets/ublock/resources.txt
fe4e995a7a828da38fcb0188c3996dbc 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

@ -203,11 +203,12 @@ google-analytics.com/analytics.js application/javascript
if ( len === 0 ) {
return;
}
try {
var f = arguments[len-1];
if ( typeof f === 'object' && f !== null && typeof f.hitCallback === 'function' ) {
f.hitCallback();
if ( typeof f !== 'object' || f === null || typeof f.hitCallback !== 'function' ) {
return;
}
try {
f.hitCallback();
} catch (ex) {
}
};
@ -361,8 +362,8 @@ i.ligatus.com/*/angular-tag.js application/javascript
# Yavli ads. These are blocked using an inline script tag filter, but this
# works only on Firefox. So we side-load the following script using whatever
# script is normally blocked on the site.
# works only on Firefox. So we side-load the following script for sites
# suffering Yavli's click-bait ads.
yavli-defuser.js application/javascript
(function() {
var descriptor = {
@ -431,6 +432,7 @@ forbes-defuser.js application/javascript
});
})();
# https://forums.lanik.us/viewtopic.php?f=62&t=25212
impspcabe-defuser.js application/javascript
(function(){