Github导航栏添加主页按钮

导航栏增加主页按钮

// ==UserScript==
// @name         Github导航栏添加主页按钮
// @version      0.7
// @description  导航栏增加主页按钮
// @author       xiaoxuan6
// @license      MIT
// @match        https://github.com/*
// @require      https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js
// @namespace https://gf.qytechs.cn/users/1038333
// ==/UserScript==
 
 
$(document).ready(function(){
    init()
    
    function init() {
        $('.AppHeader-globalBar-end').append('<div class="main"><?xml version="1.0" encoding="UTF-8"?><svg width="30" height="30" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="24" cy="16" r="6" fill="#ff4c2f" stroke="#0021ff" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/><path d="M36 36C36 29.3726 30.6274 24 24 24C17.3726 24 12 29.3726 12 36" stroke="#0021ff" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/><path d="M36 4H44V12" stroke="#0021ff" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/><path d="M12 4H4V12" stroke="#0021ff" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/><path d="M36 44H44V36" stroke="#0021ff" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/><path d="M12 44H4V36" stroke="#0021ff" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/></svg></div>')
    }
    
    $('.main').on('click', function() {
        window.location.href="/xiaoxuan6"
    })

});

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址