Skip to content

Instantly share code, notes, and snippets.

@maanimis
Last active May 27, 2025 13:34
Show Gist options
  • Save maanimis/e127f6448c061c7a2600b0c857d3a8e7 to your computer and use it in GitHub Desktop.
Save maanimis/e127f6448c061c7a2600b0c857d3a8e7 to your computer and use it in GitHub Desktop.
Redirect GitHub repositories to Gitingest, GitDiagram, or DeepWiki with a single click.
// ==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;
});
})();
@mortezae
Copy link

mortezae commented May 25, 2025

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...)

@maanimis
Copy link
Author

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