mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
26 lines
805 B
JavaScript
26 lines
805 B
JavaScript
(() =>
|
|
{
|
|
return (settings, resources) =>
|
|
{
|
|
$("body").append(resources.data.aboutDom.text);
|
|
function init()
|
|
{
|
|
resources.applyStyle("aboutStyle");
|
|
$("#about-link").on("click", () =>
|
|
{
|
|
$(".bilibili-evolved-about").toggleClass("opened");
|
|
});
|
|
}
|
|
return {
|
|
settingsWidget: {
|
|
after: () => $(".gui-settings-content"),
|
|
content: `
|
|
<div class="about gui-settings-footer">
|
|
<span id="about-version">${GM_info.script.name}, version ${settings.currentVersion}</span>
|
|
<span id="about-link">About</span>
|
|
</div>`,
|
|
success: init
|
|
}
|
|
};
|
|
};
|
|
})(); |