Guest User

Untitled

a guest
Jan 6th, 2025
821
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | Source Code | 0 0
  1. // ==UserScript==
  2. // @name Reddit VO
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.0
  5. // @description Supprime l'argument ?tl=fr des URLs de Reddit
  6. // @author Ja_Shi
  7. // @match *://*.reddit.com/*
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. (function() {
  12. 'use strict';
  13. let url = new URL(window.location.href);
  14. if (url.searchParams.has('tl')) {
  15. url.searchParams.delete('tl');
  16. window.history.replaceState(null, '', url);
  17. window.location.reload();
  18. }
  19. })();
Advertisement
Add Comment
Please, Sign In to add comment