Created
June 29, 2024 07:19
-
-
Save innateessence/20415611edafce81559648dd30f1d71b to your computer and use it in GitHub Desktop.
Redirect wikipedia URLs to wikiwand URLs [userscript]
This file contains 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 WikiWand Redirect | |
// @namespace InnateEssense.wikiwand | |
// @version 0.1 | |
// @description Automatically redirects wikipedia urls to wikiwand for a better UX | |
// @author InnateEssense | |
// @license MIT | |
// @source TODO | |
// @match en.wikipedia.org/wiki/* | |
// @icon TODO | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
console.debug('[*] WikiWand Redirecting'); | |
location.href = location.href.replace("://en.wikipedia.org/wiki/", "://wikiwand.com/en/"); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment