mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
22 lines
475 B
JavaScript
22 lines
475 B
JavaScript
const id = "haruna-scale";
|
|
const load = () =>
|
|
{
|
|
if (document.getElementById(id) === null)
|
|
{
|
|
resources.applyStyleFromText(`
|
|
.haruna-ctnr,
|
|
.avatar-btn
|
|
{
|
|
transform: scale(${1 / window.devicePixelRatio}) !important;
|
|
}
|
|
`, id);
|
|
}
|
|
};
|
|
load();
|
|
export default {
|
|
reload: load,
|
|
unload: () => {
|
|
const style = document.getElementById(id);
|
|
style && style.remove();
|
|
},
|
|
}; |