Bilibili-Evolved/utils/fix-fullscreen.js

16 lines
392 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
};
}
})();