Bilibili-Evolved/video/fix-fullscreen.js
2018-08-27 13:53:17 +08:00

16 lines
393 B
JavaScript

(() =>
{
return () =>
{
unsafeWindow.Element.ALLOW_KEYBOARD_INPUT = {};
const originalRequsetFullscreen = unsafeWindow.Element.prototype.requestFullscreen;
unsafeWindow.Element.prototype.requestFullscreen = function ()
{
originalRequsetFullscreen.call(this);
};
return {
ajaxReload: false
};
};
})();