Created
November 28, 2025 20:30
-
-
Save Sultan-papagani/f1dfc771b491caf3ba1ed00397419f12 to your computer and use it in GitHub Desktop.
Google reddit sonuçlarını ingilizce linklere çevir (Tampermonkey ile)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name Remove /?tl=tr from Reddit URLs and reload | |
| // @namespace https://example.com/ | |
| // @version 1.1 | |
| // @description Automatically remove /?tl=tr from Reddit URLs and reload the clean version | |
| // @match *://www.reddit.com/* | |
| // @match *://reddit.com/* | |
| // @run-at document-start | |
| // @grant none | |
| // ==/UserScript== | |
| (function() { | |
| 'use strict'; | |
| // Get the current URL | |
| const url = window.location.href; | |
| // Check if it ends with "/?tl=tr" | |
| if (url.endsWith('/?tl=tr')) { | |
| // Create the clean version (remove "/?tl=tr") | |
| const newUrl = url.replace('/?tl=tr', '/'); | |
| // Redirect to the clean URL | |
| window.location.replace(newUrl); | |
| } | |
| })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment