Redirects RAE dictionary pages to SpanishDict translation pages
// ==UserScript==
// @name RAE → SpanishDict Auto Redirect
// @namespace clearjade
// @version 1.02
// @description Redirects RAE dictionary pages to SpanishDict translation pages
// @match https://dle.rae.es/*
// @run-at document-start
// @license MIT
// ==/UserScript==
(function() {
'use strict';
const word = window.location.pathname.replace('/', '');
if (word) {
const newUrl = `https://www.spanishdict.com/translate/${word}`;
window.location.replace(newUrl);
}
})();