papaxsmurf / Fix Nifty links on asstr.org.

// ==UserScript==
// @name        Fix Nifty links on asstr.org.
// @match       *.asstr.org/nifty/*
// @run-at      document-start
// @grant       none
// @license MIT
// @copyright 2021, papaxsmurf (https://openuserjs.org/users/papaxsmurf)
// ==/UserScript==

var newDomain = "nifty.org";
var newURL = location.protocol + "//" +
  newDomain +
  location.pathname +
  location.search +
  location.hash;
/*-- replace() puts the good page in the history instead of the
    bad page.
*/
window.location.replace(newURL);