Git Wiki

go to deepwiki page with one click

目前為 2025-05-09 提交的版本,檢視 最新版本

// ==UserScript==
// @name         Git Wiki
// @namespace    http://tampermonkey.net/
// @version      2025-05-09
// @description  go to deepwiki page with one click
// @author       Kevin Kwong <https://github.com/kvoon3>
// @match        https://github.com/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=github.com
// @grant        none
// ==/UserScript==

(function () {
  setTimeout(() => {
    const btn = document.createElement('button')
    document.body.appendChild(btn)
    btn.style.position = 'fixed'
    btn.style.right = '20px'
    btn.style.bottom = '20px'
    btn.style.width = '50px'
    btn.style.height = '50px'
    btn.style.backgroundColor = '#000'
    btn.style.color = 'white'
    btn.style.border = 'none'
    btn.style.borderRadius = '50%'
    btn.style.cursor = 'pointer'
    btn.style.boxShadow = '0 2px 5px rgba(0,0,0,0.2)'
    btn.style.transition = 'all 0.3s ease'
    btn.style.display = 'flex'
    btn.style.justifyContent = 'center'
    btn.style.alignItems = 'center'
    btn.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><!-- Icon from Material Design Icons by Pictogrammers - https://github.com/Templarian/MaterialDesign/blob/master/LICENSE --><path fill="currentColor" d="m14.97 18.95l-2.56-6.03c-1.02 1.99-2.14 4.08-3.1 6.03c-.01.01-.47 0-.47 0C7.37 15.5 5.85 12.1 4.37 8.68C4.03 7.84 2.83 6.5 2 6.5v-.45h5.06v.45c-.6 0-1.62.4-1.36 1.05c.72 1.54 3.24 7.51 3.93 9.03c.47-.94 1.8-3.42 2.37-4.47c-.45-.88-1.87-4.18-2.29-5c-.32-.54-1.13-.61-1.75-.61c0-.15.01-.25 0-.44l4.46.01v.4c-.61.03-1.18.24-.92.82c.6 1.24.95 2.13 1.5 3.28c.17-.34 1.07-2.19 1.5-3.16c.26-.65-.13-.91-1.21-.91c.01-.12.01-.33.01-.43c1.39-.01 3.48-.01 3.85-.02v.42c-.71.03-1.44.41-1.82.99L13.5 11.3c.18.51 1.96 4.46 2.15 4.9l3.85-8.83c-.3-.72-1.16-.87-1.5-.87v-.45l4 .03v.42c-.88 0-1.43.5-1.75 1.25c-.8 1.79-3.25 7.49-4.85 11.2z"/></svg>'

    btn.addEventListener('mouseover', () => {
      btn.style.transform = 'scale(1.1)'
      btn.style.boxShadow = '0 4px 8px rgba(0,0,0,0.3)'
    })

    btn.addEventListener('mouseout', () => {
      btn.style.transform = 'scale(1)'
      btn.style.boxShadow = '0 2px 5px rgba(0,0,0,0.2)'
    })

    btn.addEventListener('click', () => {
      const currentUrl = window.location.href
      const newUrl = currentUrl.replace('github.com', 'deepwiki.com')
      window.location.href = newUrl
    })
  }, 1000)
})()




QingJ © 2025

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