Skip to content

Instantly share code, notes, and snippets.

@Sultan-papagani
Created November 28, 2025 20:30
Show Gist options
  • Select an option

  • Save Sultan-papagani/f1dfc771b491caf3ba1ed00397419f12 to your computer and use it in GitHub Desktop.

Select an option

Save Sultan-papagani/f1dfc771b491caf3ba1ed00397419f12 to your computer and use it in GitHub Desktop.
Google reddit sonuçlarını ingilizce linklere çevir (Tampermonkey ile)
// ==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