Bilibili-Evolved/style/remove-top-mask.js
2019-05-04 17:46:39 +08:00

16 lines
404 B
JavaScript

const style = `.bilibili-player-video-top { display: none !important; }`;
const id = "remove-top-mask-style";
const reload = () => resources.applyStyleFromText(/*html*/`<style id="${id}">${style}</style>`);
const unload = () =>
{
const styleElement = document.getElementById(id);
if (styleElement)
{
styleElement.remove();
}
}
reload();
export default {
reload,
unload,
};