Skip to content

Instantly share code, notes, and snippets.

@Tithen-Firion
Created February 17, 2026 16:48
Show Gist options
  • Select an option

  • Save Tithen-Firion/e1144489eadde5219714bbf84d0ca160 to your computer and use it in GitHub Desktop.

Select an option

Save Tithen-Firion/e1144489eadde5219714bbf84d0ca160 to your computer and use it in GitHub Desktop.
Google before 2016
// ==UserScript==
// @name Google before 2016
// @version 1.0.0
// @match *://www.google.com/search?*
// @grant none
// ==/UserScript==
const params = new URLSearchParams(document.location.search);
let query = params.get("q");
if(!query.includes("before:2016")) {
params.set("q", "before:2016 " + query);
document.location.search = params.toString();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment