mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
16 lines
414 B
JavaScript
16 lines
414 B
JavaScript
const style = `#entryOld, .main-container .entry-old { display: none !important; }`;
|
|
const id = "hide-old-entry-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,
|
|
}; |