this addresses slideshow widget broken on food.com

This commit is contained in:
gorhill 2016-03-15 19:38:07 -04:00
parent a936b5eae2
commit 6aab4bd42a
3 changed files with 66 additions and 9 deletions

View File

@ -1,11 +1,11 @@
538211a2228745b51b615b1b245cf99e assets/ublock/unbreak.txt
d9a4dc0e67518936a1724a2e8468f6c7 assets/ublock/unbreak.txt
62111a29f0a5cb361ba8dbae92054adb assets/ublock/redirect-resources.txt
94efb2d9c4bd436707c3923d64cb4f3b assets/ublock/privacy.txt
6c98fd9aa53fba5cf83865ad2990127f assets/ublock/filters.txt
98088252cedafb8571cf61b91bea219e assets/ublock/badware.txt
5baa90e2da7cd6a73edff2010557ee57 assets/ublock/redirect.txt
d81312866b351765bb63082274d90293 assets/ublock/experimental.txt
c414a4cc814fb2b64cc9ca05a9d3b0d2 assets/ublock/resources.txt
a02ac0b5cd434a00eff9f604a3987c61 assets/ublock/resources.txt
059e0bfbf22bd242dda7b07389fe09a2 assets/ublock/filter-lists.json
3605c73f21abca428c7eb69a8bc32dfe assets/thirdparties/easylist-downloads.adblockplus.org/easyprivacy.txt
a91af77c47c302c0741c7445b0fada1a assets/thirdparties/easylist-downloads.adblockplus.org/easylist.txt

View File

@ -838,13 +838,13 @@ disqus.com/embed.js application/javascript
# https://github.com/gorhill/uBlock/issues/1461
ytad-defuser.js application/javascript
(function() {
var bind = Function.prototype.bind;
Function.prototype.bind = function() {
'native code';
var bound = bind.apply(this, arguments);
bound.xpizqvtnrfkcjixkmdnu = this.toString();
return bound;
};
var bind = Function.prototype.bind;
Function.prototype.bind = function() {
'native code';
var bound = bind.apply(this, arguments);
bound.xpizqvtnrfkcjixkmdnu = this.toString();
return bound;
};
var sto = window.setTimeout;
window.setTimeout = function(a, b) {
if ( b === 15000 && b < 20000 && 'xpizqvtnrfkcjixkmdnu' in a ) {
@ -853,3 +853,54 @@ ytad-defuser.js application/javascript
return sto(a, b);
};
})();
amazon-adsystem.com/aax2/amzn_ads.js application/javascript
(function() {
if ( amznads ) {
return;
}
var w = window;
var noopfn = function() {
;
};
var amznads = {
appendScriptTag: noopfn,
appendTargetingToAdServerUrl: noopfn,
appendTargetingToQueryString: noopfn,
clearTargetingFromGPTAsync: noopfn,
doAllTasks: noopfn,
doGetAdsAsync: noopfn,
doTask: noopfn,
detectIframeAndGetURL: noopfn,
getAds: noopfn,
getAdsAsync: noopfn,
getAdForSlot: noopfn,
getAdsCallback: noopfn,
getDisplayAds: noopfn,
getDisplayAdsAsync: noopfn,
getDisplayAdsCallback: noopfn,
getKeys: noopfn,
getReferrerURL: noopfn,
getScriptSource: noopfn,
getTargeting: noopfn,
getTokens: noopfn,
getValidMilliseconds: noopfn,
getVideoAds: noopfn,
getVideoAdsAsync: noopfn,
getVideoAdsCallback: noopfn,
handleCallBack: noopfn,
hasAds: noopfn,
renderAd: noopfn,
saveAds: noopfn,
setTargeting: noopfn,
setTargetingForGPTAsync: noopfn,
setTargetingForGPTSync: noopfn,
tryGetAdsAsync: noopfn,
updateAds: noopfn
};
w.amznads = amznads;
w.amzn_ads = w.amzn_ads || noopfn;
w.aax_write = w.aax_write || noopfn;
w.aax_render_ad = w.aax_render_ad || noopfn;
})();

View File

@ -266,3 +266,9 @@ phoronix.com#@#div[style^="text-align: center;"]
# https://forums.lanik.us/viewtopic.php?f=64&t=28701
@@||files.explosm.net/files/$image,first-party
# `amazon-adsystem.com` is blocked by Peter Lowe's. The neutered script should
# help lower chances of breakage. Examples:
# - http://www.food.com/recipe/oven-baked-sweet-plantains-80130?photo=39927 (sliceshow controls broken)
# - [add more]
||amazon-adsystem.com/aax2/amzn_ads.js$script,redirect=amazon-adsystem.com/aax2/amzn_ads.js