mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
Disable "about", refactor touch navbar
This commit is contained in:
parent
98ffb2d730
commit
6119809806
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -95,7 +95,7 @@ const fixedSettings = {
|
||||
downloadAudio: true,
|
||||
playerLayout: true,
|
||||
medalHelper: true,
|
||||
about: true,
|
||||
about: false,
|
||||
forceWide: false,
|
||||
latestVersionLink: "https://github.com/the1812/Bilibili-Evolved/raw/preview/bilibili-evolved.preview.user.js",
|
||||
currentVersion: GM_info.script.version,
|
||||
|
||||
@ -95,7 +95,7 @@ const fixedSettings = {
|
||||
downloadAudio: true,
|
||||
playerLayout: true,
|
||||
medalHelper: true,
|
||||
about: true,
|
||||
about: false,
|
||||
forceWide: false,
|
||||
latestVersionLink: "https://github.com/the1812/Bilibili-Evolved/raw/master/bilibili-evolved.user.js",
|
||||
currentVersion: GM_info.script.version,
|
||||
|
||||
@ -70,7 +70,7 @@ const fixedSettings = {
|
||||
downloadAudio: true,
|
||||
playerLayout: true,
|
||||
medalHelper: true,
|
||||
about: true,
|
||||
about: false,
|
||||
forceWide: false,
|
||||
latestVersionLink: "https://github.com/the1812/Bilibili-Evolved/raw/preview/bilibili-evolved.preview.user.js",
|
||||
currentVersion: GM_info.script.version,
|
||||
|
||||
2
min/touch-navbar.min.js
vendored
2
min/touch-navbar.min.js
vendored
@ -1 +1 @@
|
||||
(()=>{return(n,r)=>{SpinQuery.count(()=>$("ul.fr>li.nav-item").not(".profile-info"),6,n=>{const r=(n,r)=>{const t=$(r);t.css("cursor","pointer");const o=t.find("a.t");o.removeAttr("href")};n.each(r)})}})();
|
||||
(()=>{return(e,r)=>{SpinQuery.count(()=>document.querySelectorAll("ul.fr>li.nav-item:not(.profile-info)"),6,e=>{e.forEach(e=>{e.style.cursor="pointer";const r=e.querySelector("a.t");r.removeAttribute("href")})})}})();
|
||||
@ -1,15 +1,13 @@
|
||||
SpinQuery.count(
|
||||
() => $("ul.fr>li.nav-item").not(".profile-info"),
|
||||
() => document.querySelectorAll("ul.fr>li.nav-item:not(.profile-info)"),
|
||||
6,
|
||||
navItems =>
|
||||
{
|
||||
const enableTouch = (_, nav) =>
|
||||
navItems.forEach(nav =>
|
||||
{
|
||||
const $nav = $(nav);
|
||||
$nav.css("cursor", "pointer");
|
||||
const a = $nav.find("a.t");
|
||||
a.removeAttr("href");
|
||||
};
|
||||
navItems.each(enableTouch);
|
||||
nav.style.cursor = "pointer";
|
||||
const a = nav.querySelector("a.t");
|
||||
a.removeAttribute("href");
|
||||
});
|
||||
}
|
||||
);
|
||||
Loading…
Reference in New Issue
Block a user