您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Click on the memrise's logo in the navigation bar to add a new link
// ==UserScript== // @name MEMRISE / add a link in the navigation bar // @name:fr MEMRISE / ajoutez un lien dans la barre de navigation // @namespace http://tampermonkey.net/ // @version 1.0 // @description Click on the memrise's logo in the navigation bar to add a new link // @description:fr Cliquez sur le logo de memrise pour ajouter a nouveau lien // @author nadroy // @include /https:\/\/www\.memrise\.com/ // @grant none // ==/UserScript== (function(){ var ls = window.localStorage var btnColored = document.getElementsByClassName("header-nav-item colored premium")[0] if(ls.getItem("TheNewLinks") != null && ls.getItem("TheNewLinks") != "" && ls.getItem("TheNewLinks").includes(":")){ btnColored.insertAdjacentHTML("beforebegin" , ls.getItem("TheNewLinks")) } var memriseLogo = document.getElementsByClassName("header-logo-desktop")[0] document.getElementsByClassName("header-logo")[0].removeAttribute("href") function addElementNav(){ var newLinkValue = prompt("The new link : ") var newTextLinkValue = prompt("Text to display : ") var theLink = `<li class="header-nav-item plain"><a href="` + newLinkValue + `" class="nav-item-btn"> <span class="nav-item-btn-text plain">` + newTextLinkValue + `</span> </a></li>` if(newTextLinkValue != ""){ if(newLinkValue.includes("http://") != false || newLinkValue.includes("https://") != false){ if(ls.getItem("TheNewLinks") != null && ls.getItem("TheNewLinks") != ""){ ls.setItem("TheNewLinks" , ls.getItem("TheNewLinks") + theLink) btnColored.insertAdjacentHTML('beforebegin' , theLink) }else{ ls.setItem("TheNewLinks" , theLink) btnColored.insertAdjacentHTML('beforebegin' , theLink) } }else{ return false } }else{ return false } return false } memriseLogo.onclick = function(){ addElementNav() } })()
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址