Last active
November 1, 2025 13:50
-
-
Save PatrickJnr/1480f03f716e98d6a6d45e5a940b1d67 to your computer and use it in GitHub Desktop.
Wikipedia to Grokipedia Redirector
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 Wikipedia to Grokipedia Redirector | |
| // @namespace http://tampermonkey.net/ | |
| // @version 1.0 | |
| // @description Automatically redirect Wikipedia to Grokipedia | |
| // @author PatrickJr | |
| // @match *://*.wikipedia.org/wiki/* | |
| // @grant none | |
| // @run-at document-start | |
| // ==/UserScript== | |
| (function() { | |
| 'use strict'; | |
| const currentUrl = window.location.href; | |
| const wikiMatch = currentUrl.match(/wikipedia\.org\/wiki\/(.+)/); | |
| if (wikiMatch && wikiMatch[1]) { | |
| const pageTitle = wikiMatch[1]; | |
| const grokipediaUrl = `https://grokipedia.com/page/${pageTitle}`; | |
| window.location.replace(grokipediaUrl); | |
| } | |
| })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment