您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Add a button to open the corresponding wiki page on DeepWiki
当前为
// ==UserScript== // @name DeepWiki // @namespace https://github.com/AmintaCCCP/ // @version 1.0 // @description Add a button to open the corresponding wiki page on DeepWiki // @author tamina // @match https://github.com/* // @icon https://www.google.com/s2/favicons?domain=github.com // @grant none // ==/UserScript== (function() { 'use strict'; function addWikiButton() { // Check if we're on a repository page const repoPath = window.location.pathname.match(/^\/([^/]+)\/([^/]+)(?:\/|$)/); if (repoPath) { // Get the username and repository name from the URL const username = repoPath[1]; const repo = repoPath[2]; // Create the wiki button const wikiButton = document.createElement('a'); wikiButton.classList.add('btn', 'btn-sm', 'btn-outline', 'ml-2'); wikiButton.style.position = 'fixed'; wikiButton.style.bottom = '20px'; wikiButton.style.right = '20px'; wikiButton.style.zIndex = '9999'; wikiButton.href = `https://deepwiki.com/${username}/${repo}`; wikiButton.target = '_blank'; wikiButton.title = 'Open Wiki on DeepWiki'; // Add the Emoji light bulb icon wikiButton.textContent = '💡'; // Append the button to the page const repoHeader = document.querySelector('.BorderGrid-cell'); if (repoHeader) { repoHeader.appendChild(wikiButton); } else { document.body.appendChild(wikiButton); } } } // Add the wiki button when the page loads window.addEventListener('load', addWikiButton); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址