Greasy Fork is available in English.
Redirect mobile Wikipedia to desktop
< Opinie na Always desktop Wikipedia
I've made a fork with your idea: https://greasyfork.org/fr/scripts/402621-redirect-to-desktop-wikipedia
After some test, it still add to the history, at least with Firefox desktop & Tampermonkey.
Possible Improvement?
Works well, but I prefer location.replace since it doesn't add to the history, i.e.
location.replace(location.href.replace(".m.wikipedia.org/", ".wikipedia.org/"));