Skip to content

Instantly share code, notes, and snippets.

@jmhobbs
Created April 17, 2025 15:52
Show Gist options
  • Save jmhobbs/f4bee43854bb145eb5479c6351389112 to your computer and use it in GitHub Desktop.
Save jmhobbs/f4bee43854bb145eb5479c6351389112 to your computer and use it in GitHub Desktop.
Temporarily change links from docs.gofiber.io to gofiber.github.io/docs
// ==UserScript==
// @name Go Fiber Docs
// @version 2025-04-17
// @description Temporarily change links from docs.gofiber.io to gofiber.github.io/docs
// @author John Hobbs
// @match *://*/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
var re = /^https?:\/\/docs.gofiber.io\//;
document.querySelectorAll('a').forEach((e) => {
if(e.href.match(re)) {
e.href = e.href.replace(re, "https://gofiber.github.io/docs/");
}
});
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment