mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
Disable blur settings in not supported browsers
This commit is contained in:
parent
7c0f4a2796
commit
a235405aed
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
2
min/gui-settings.min.js
vendored
2
min/gui-settings.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -298,6 +298,13 @@
|
|||||||
$(e).click();
|
$(e).click();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
function checkCompatibility()
|
||||||
|
{
|
||||||
|
if (!CSS.supports("backdrop-filter", "blur(24px)"))
|
||||||
|
{
|
||||||
|
$("input[key=blurVideoControl]").prop("disabled", true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
addSettingsIcon($("body"));
|
addSettingsIcon($("body"));
|
||||||
const settingsBox = resources.data.guiSettingsDom.text;
|
const settingsBox = resources.data.guiSettingsDom.text;
|
||||||
@ -310,8 +317,9 @@
|
|||||||
listenDependencies();
|
listenDependencies();
|
||||||
addPredefinedColors();
|
addPredefinedColors();
|
||||||
listenSettingsChange();
|
listenSettingsChange();
|
||||||
applyBlurEffect();
|
// applyBlurEffect();
|
||||||
foldAllCategories();
|
foldAllCategories();
|
||||||
|
checkCompatibility();
|
||||||
}
|
}
|
||||||
|
|
||||||
new SpinQuery(
|
new SpinQuery(
|
||||||
|
|||||||
@ -313,9 +313,6 @@ input[type=text][key]
|
|||||||
backdrop-filter: blur(24px);
|
backdrop-filter: blur(24px);
|
||||||
background: transparent;
|
background: transparent;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
@supports (backdrop-filter: blur(64px)) or (-webkit-backdrop-filter: blur(64px))
|
|
||||||
{
|
|
||||||
.gui-settings-box.blur,
|
.gui-settings-box.blur,
|
||||||
.gui-settings-box.blur .gui-settings-content,
|
.gui-settings-box.blur .gui-settings-content,
|
||||||
.gui-settings-box.blur .gui-settings-header,
|
.gui-settings-box.blur .gui-settings-header,
|
||||||
@ -545,6 +542,10 @@ li.category.folded i.icon-arrow
|
|||||||
box-shadow: 0px 2px 8px 1px $customStyleColor70;
|
box-shadow: 0px 2px 8px 1px $customStyleColor70;
|
||||||
left: calc(100% - 16px);
|
left: calc(100% - 16px);
|
||||||
}
|
}
|
||||||
|
.gui-settings-checkbox-container input:disabled ~ .gui-settings-checkbox
|
||||||
|
{
|
||||||
|
opacity: 0.5;
|
||||||
|
}
|
||||||
.gui-settings-header>i
|
.gui-settings-header>i
|
||||||
{
|
{
|
||||||
margin-right: 8px;
|
margin-right: 8px;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user