您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Makes AnkiWeb navbar brand a link to the decks page. This behavior is missing since the 2023.08.18 AnkiWeb update.
// ==UserScript== // @name AnkiWeb Logo Link // @namespace http://tampermonkey.net/ // @version 0.2 // @description Makes AnkiWeb navbar brand a link to the decks page. This behavior is missing since the 2023.08.18 AnkiWeb update. // @author ithelor // @match https://ankiuser.net/study // @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw== // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; new MutationObserver((mutationsList) => mutationsList.forEach(({ type }) => { if (type === "childList") { const navbarBrand = document.getElementsByClassName('navbar-brand').item(0); if (navbarBrand.tagName === 'A') { return; } // remove [possibly infinite] logo animation document.getElementById('logo').className = "" const newNavbarBrand = document.createElement("a"); newNavbarBrand.innerHTML = navbarBrand.innerHTML; newNavbarBrand.className = 'navbar-brand'; newNavbarBrand.setAttribute('href', 'https://ankiweb.net/decks'); navbarBrand.parentNode.replaceChild(newNavbarBrand, navbarBrand); } })).observe(document.body, { childList: true, subtree: true, }); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址