Bilibili-Evolved/style/haruna-scale.js
2019-05-31 16:32:42 +08:00

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();
},
};