Skip to content

Instantly share code, notes, and snippets.

@dclamage
Last active July 14, 2022 00:27
Show Gist options
  • Save dclamage/d2c34381ad671e3485cfba49b194e333 to your computer and use it in GitHub Desktop.
Save dclamage/d2c34381ad671e3485cfba49b194e333 to your computer and use it in GitHub Desktop.
Redirect crackingthecryptic to sudokupad
// ==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