mirror of
https://github.com/SukkaW/Surge.git
synced 2026-01-28 17:41:54 +08:00
Feat: enhanced AdBlock with outbrain widget
This commit is contained in:
53
Mock/widgets-outbrain-com_outbrain.js
Normal file
53
Mock/widgets-outbrain-com_outbrain.js
Normal file
@@ -0,0 +1,53 @@
|
||||
(function () {
|
||||
'use strict';
|
||||
|
||||
const noopfn = () => {
|
||||
// noop
|
||||
};
|
||||
const obr = {};
|
||||
const methods = [
|
||||
'callClick',
|
||||
'callLoadMore',
|
||||
'callRecs',
|
||||
'callUserZapping',
|
||||
'callWhatIs',
|
||||
'cancelRecommendation',
|
||||
'cancelRecs',
|
||||
'closeCard',
|
||||
'closeModal',
|
||||
'closeTbx',
|
||||
'errorInjectionHandler',
|
||||
'getCountOfRecs',
|
||||
'getStat',
|
||||
'imageError',
|
||||
'manualVideoClicked',
|
||||
'onOdbReturn',
|
||||
'onVideoClick',
|
||||
'pagerLoad',
|
||||
'recClicked',
|
||||
'refreshSpecificWidget',
|
||||
'renderSpaWidgets',
|
||||
'refreshWidget',
|
||||
'reloadWidget',
|
||||
'researchWidget',
|
||||
'returnedError',
|
||||
'returnedHtmlData',
|
||||
'returnedIrdData',
|
||||
'returnedJsonData',
|
||||
'scrollLoad',
|
||||
'showDescription',
|
||||
'showRecInIframe',
|
||||
'userZappingMessage',
|
||||
'zappingFormAction'
|
||||
];
|
||||
obr.extern = {
|
||||
video: {
|
||||
getVideoRecs: noopfn,
|
||||
videoClicked: noopfn
|
||||
}
|
||||
};
|
||||
methods.forEach((a) => {
|
||||
obr.extern[a] = noopfn;
|
||||
});
|
||||
window.OBR = obr;
|
||||
}());
|
||||
Reference in New Issue
Block a user