Last active
July 14, 2022 00:27
-
-
Save dclamage/d2c34381ad671e3485cfba49b194e333 to your computer and use it in GitHub Desktop.
Redirect crackingthecryptic to sudokupad
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 Redirect crackingthecryptic to sudokupad | |
// @namespace http://tampermonkey.net/ | |
// @version 0.2 | |
// @description Redirects crackingthecryptic puzzle URLs to sudokupad | |
// @author Rangsk | |
// @match *://app.crackingthecryptic.com/sudoku/* | |
// @match *://test.crackingthecryptic.com/sudoku/* | |
// @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw== | |
// @run-at document-start | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
let split = window.location.pathname.split("/sudoku/"); | |
let newurl = "https://sudokupad.app/"+split[1]+window.location.search; | |
window.location.replace(newurl); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment