Bilibili-Evolved/touch/touch-navbar.min.js
2018-07-19 23:54:34 +08:00

1 line
402 B
JavaScript

(()=>t=>{waitForQuery()(()=>$("ul.fr>li.nav-item").not(".profile-info"),t=>6===t.length,r=>{if(t.touchNavBar){const t=(t,r)=>{const e=$(r);e.css("cursor","pointer");const o=e.find("a.t");o.attr("removed-href",o.attr("href")),o.removeAttr("href")};r.each(t)}else{const t=(t,r)=>{const e=$(r);e.css("cursor","pointer");const o=e.find("a.t"),n=o.attr("removed-href");n&&o.attr("href",n)};r.each(t)}})})();