From b0aaf7a2d1cdc9645bac4fbbb7fc80487671de21 Mon Sep 17 00:00:00 2001 From: gorhill Date: Wed, 3 Feb 2016 18:49:07 -0500 Subject: [PATCH] this fixes dm --- assets/checksums.txt | 2 +- assets/ublock/resources.txt | 54 ++++++++++++++----------------------- 2 files changed, 21 insertions(+), 35 deletions(-) diff --git a/assets/checksums.txt b/assets/checksums.txt index 164042097..c7271755c 100644 --- a/assets/checksums.txt +++ b/assets/checksums.txt @@ -5,7 +5,7 @@ a1bbb634b15518cb2916bfdc78fd4344 assets/ublock/unbreak.txt 146704ad1c0393e342afdb416762c183 assets/ublock/badware.txt 5baa90e2da7cd6a73edff2010557ee57 assets/ublock/redirect.txt a2c0edc2da6a2ba591d83f9a105a8401 assets/ublock/experimental.txt -0a8d548c42652b0303ab35d4e4fe0852 assets/ublock/resources.txt +4d7a4dae5294ea40b0af1bd184806308 assets/ublock/resources.txt fd3bf1065012191e032f81468de43e09 assets/ublock/filter-lists.json 3605c73f21abca428c7eb69a8bc32dfe assets/thirdparties/easylist-downloads.adblockplus.org/easyprivacy.txt a91af77c47c302c0741c7445b0fada1a assets/thirdparties/easylist-downloads.adblockplus.org/easylist.txt diff --git a/assets/ublock/resources.txt b/assets/ublock/resources.txt index 751546633..851bfd91c 100644 --- a/assets/ublock/resources.txt +++ b/assets/ublock/resources.txt @@ -527,6 +527,7 @@ openload-defuser.js application/javascript var noopfn = function() { ; }; + var excludes = ['177']; var wjdmpGet = function() { return wjdmp; }; @@ -535,8 +536,12 @@ openload-defuser.js application/javascript if ( r.length === 1 && r[0] === 4 ) { for ( var k in o ) { if ( o.hasOwnProperty(k) && typeof o[k] === 'function' ) { - o[k] = noopfn; + continue; } + if ( excludes.indexOf(k) !== -1 ) { + continue; + } + o[k] = noopfn; } } a(r, o); @@ -593,44 +598,25 @@ widgets.outbrain.com/outbrain.js application/javascript ; }; var obr = {}; + var methods = [ + 'callClick', 'callLoadMore', 'callRecs', 'callUserZapping', + 'callWhatIs', 'cancelRecommendation', 'cancelRecs', 'closeCard', + 'closeModal', 'closeTbx', 'errorInjectionHandler', 'getCountOfRecs', + 'getStat', 'imageError', 'manualVideoClicked', 'onOdbReturn', + 'onVideoClick', 'pagerLoad', 'recClicked', 'refreshSpecificWidget', + 'refreshWidget', 'reloadWidget', 'researchWidget', 'returnedError', + 'returnedHtmlData', 'returnedIrdData', 'returnedJsonData', 'scrollLoad', + 'showDescription', 'showRecInIframe', 'userZappingMessage', 'zappingFormAction' + ]; obr.extern = { - callClick: noopfn, - callLoadMore: noopfn, - callRecs: noopfn, - callUserZapping: noopfn, - callWhatIs: noopfn, - cancelRecommendation: noopfn, - cancelRecs: noopfn, - closeCard: noopfn, - closeModal: noopfn, - closeTbx: noopfn, - errorInjectionHandler: noopfn, - getCountOfRecs: noopfn, - getStat: noopfn, - imageError: noopfn, - manualVideoClicked: noopfn, - onOdbReturn: noopfn, - onVideoClick: noopfn, - pagerLoad: noopfn, - recClicked: noopfn, - refreshSpecificWidget: noopfn, - refreshWidget: noopfn, - reloadWidget: noopfn, - researchWidget: noopfn, - returnedError: noopfn, - returnedHtmlData: noopfn, - returnedIrdData: noopfn, - returnedJsonData: noopfn, - scrollLoad: noopfn, - showDescription: noopfn, - showRecInIframe: noopfn, - userZappingMessage: noopfn, video: { getVideoRecs: noopfn, videoClicked: noopfn - }, - zappingFormAction: noopfn + } }; + methods.forEach(function(a) { + obr.extern[a] = noopfn; + }); window.OBR = window.OBR || obr; })();