Last active
May 27, 2025 13:34
-
-
Save maanimis/e127f6448c061c7a2600b0c857d3a8e7 to your computer and use it in GitHub Desktop.
Redirect GitHub repositories to Gitingest, GitDiagram, or DeepWiki with a single click.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name GithubMultiView | |
// @namespace Violentmonkey Scripts | |
// @match https://github.com/* | |
// @grant none | |
// @version 4.0 | |
// @author maanimis | |
// @description Redirect GitHub repositories to Gitingest, GitDiagram, or DeepWiki with a single click. | |
// @grant GM_registerMenuCommand | |
// @run-at document-end | |
// @license MIT | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
GM_registerMenuCommand('Go to Gitingest', function() { | |
const newUrl = window.location.href.replace('github.com', 'gitingest.com'); | |
window.location.href = newUrl; | |
}); | |
GM_registerMenuCommand('Go to Diagram', function() { | |
const newUrl = window.location.href.replace('github.com', 'gitdiagram.com'); | |
window.location.href = newUrl; | |
}); | |
GM_registerMenuCommand('Go to DeepWiki', function() { | |
const newUrl = window.location.href.replace('github.com', 'DeepWiki.com'); | |
window.location.href = newUrl; | |
}); | |
})(); |
Set your script name to *.user.js and they can be installed by just a click on "Raw" button directly from within the gist (If there were no intention in your naming...)
You're right.
The userscript has been updated.
Thank you.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Set your script name to *.user.js and they can be installed by just a click on "Raw" button directly from within the gist (If there were no intention in your naming...)