Skip to content

Instantly share code, notes, and snippets.

@GitHub-Mike
Last active October 24, 2025 06:44
Show Gist options
  • Select an option

  • Save GitHub-Mike/58ff676bc91fbf33639083d920101dc7 to your computer and use it in GitHub Desktop.

Select an option

Save GitHub-Mike/58ff676bc91fbf33639083d920101dc7 to your computer and use it in GitHub Desktop.
A UserScript to cleanup Google search URLs in Browser - #userscript #javascript #browser #tampermonkey #greasemonkey #violentmonkey #userscripts
// ==UserScript==
// @name Cleanup Google Search URLs
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Deactivate Google Search Tracking
// @author You
// @match https://*.google.de/search*
// @icon https://www.google.com/s2/favicons?sz=64&domain=google.de
// @grant none
// ==/UserScript==
(function() {
'use strict';
let newUrl = window.location.href.split('&')[0];
window.history.replaceState({},'', newUrl);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment