Github导航栏添加主页按钮

导航栏增加主页按钮

  1. // ==UserScript==
  2. // @name Github导航栏添加主页按钮
  3. // @version 0.7
  4. // @description 导航栏增加主页按钮
  5. // @author xiaoxuan6
  6. // @license MIT
  7. // @match https://github.com/*
  8. // @require https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js
  9. // @namespace https://gf.qytechs.cn/users/1038333
  10. // ==/UserScript==
  11. $(document).ready(function(){
  12. init()
  13. function init() {
  14. $('.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>')
  15. }
  16. $('.main').on('click', function() {
  17. window.location.href="/xiaoxuan6"
  18. })
  19.  
  20. });

QingJ © 2025

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