您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
洛谷顶栏添加其他链接,可自定义
当前为
// ==UserScript== // @name 洛谷顶栏添加其他链接 // @description 洛谷顶栏添加其他链接,可自定义 // @namespace http://greasyfork.icu/zh-CN/users/772347 // @version 1.2 // @author WYXkk // @match https://www.luogu.com.cn/ // @match https://www.luogu.com.cn/chat* // @match https://www.luogu.com.cn/notification* // @match https://www.luogu.com.cn/user/* // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; //将网站的链接及文本在下方添加即可,下面只是一个示例 var x=[ {link:'https://www.bilibili.com',text:'Bilibili'}, ]; function add() { if(document.querySelectorAll('.link-container')[0]==undefined) setTimeout(function(){add()},50); else setTimeout(function(){for(var i in x){ var a=document.createElement("a");document.querySelectorAll('.link-container')[0].append(a);a.outerHTML= '<a href=\"'+x[i].link+'\" target=\"_blank\" colorscheme=\"none\" class=\"header-link color-none\" style="vertical-align: middle;margin-right: 2em;color: #262626;text-decoration: none;">'+x[i].text+'</a>' ;}},100); } add(); })();