mirror of
https://github.com/SukkaW/Surge.git
synced 2025-12-12 01:00:34 +08:00
54 lines
997 B
JavaScript
54 lines
997 B
JavaScript
(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;
|
|
}());
|