Reload Urban Dictionary

Removes ? from URL

As of 2020-11-08. See the latest version.

// ==UserScript==
// @name        Reload Urban Dictionary
// @namespace   Nameless
// @match       *://www.urbandictionary.*/*
// @grant       none
// @version     1.0
// @author      -
// @description Removes ? from URL
// ==/UserScript==

let a= window.location.href;

let b= a.split('?term=');

let c= b[0];

let d= b[1];

if (d.includes('?')) {

d= d.replace('?','');

location.replace(c+'?term='+d);

}