Skip to content

Instantly share code, notes, and snippets.

@ThomasG77
Last active November 2, 2019 21:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ThomasG77/95e3cafa2348456a959dd986b680e461 to your computer and use it in GitHub Desktop.
Save ThomasG77/95e3cafa2348456a959dd986b680e461 to your computer and use it in GitHub Desktop.
Greasemonkey script to restore URL view in Google search
// ==UserScript==
// @name Change URL back
// @version 1
// @include /(http|https):\/\/www\.google\.(ca|co\.in|co\.uk|com|com\.br|de|es|fr|it|pl|ru)\/search\?/
// @grant none
// ==/UserScript==
Array.from(document.querySelectorAll('cite')).forEach(el => el.textContent = el.parentElement.parentElement.href);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment