Disable Reddit Auto-Translation

Prevents Reddit from auto-translating subreddit content by removing the 'tl' parameter from the URL.

  1. // ==UserScript==
  2. // @name Disable Reddit Auto-Translation
  3. // @namespace http://github.com/Starmania
  4. // @version 1.1
  5. // @description Prevents Reddit from auto-translating subreddit content by removing the 'tl' parameter from the URL.
  6. // @author Starmania
  7. // @match https://www.reddit.com/r/*
  8. // @run-at document-start
  9. // @icon https://www.google.com/s2/favicons?sz=64&domain=reddit.com
  10. // @grant none
  11. // @license MIT
  12. // ==/UserScript==
  13.  
  14. (() => {
  15. 'use strict';
  16. const url = new URL(window.location);
  17. if (url.searchParams.has("tl")) {
  18. url.searchParams.delete("tl");
  19. window.location.replace(url.toString());
  20. }
  21. })();