Reddit Untranslate

Removes the language param in url and redirects to the original post language.

  1. // ==UserScript==
  2. // @name Reddit Untranslate
  3. // @name:de Reddit Untranslate
  4. // @namespace https://greatest.deepsurf.us/users/928242
  5. // @version 1.0.0
  6. // @description Removes the language param in url and redirects to the original post language.
  7. // @description:de Entfernt den Sprachen Parameter in der URL und leitet auf die Originalsprache des Posts um.
  8. // @author Kamikaze (https://github.com/Kamiikaze)
  9. // @supportURL https://github.com/Kamiikaze/Tampermonkey/issues
  10. // @match https://*.reddit.com/*
  11. // @match https://www.reddit.com/*
  12. // @icon https://www.google.com/s2/favicons?sz=64&domain=reddit.com
  13. // @license MIT
  14. // @grant none
  15. // @run-at document-start
  16. // ==/UserScript==
  17.  
  18. (() => {
  19. let url = new URL(window.location.href)
  20. if ( url.searchParams.has("tl") ) {
  21. console.log("Redirecting to untranslated post..")
  22. url.searchParams.delete("tl")
  23. window.location.href = url.toString()
  24. }
  25. })();