Greasy Fork is available in English.

Reload Urban Dictionary

Removes ? from URL

目前為 2020-11-08 提交的版本,檢視 最新版本

// ==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);

}