Quick Google Site Search Bookmarklet

Jan 17, 2023
1 min read
Share:

I’m super lazy and got tired of typing “site:{domain} {query}” into a new Google tab, so I wrote a quick bookmarklet to speed it up! Figured I’d share in case anyone is similarly keyboard disinclined:

javascript: (function() {
	let domain = prompt('Which domain would you like to search?', document.location.host);

	if (!domain) {
		return
	}

	let query = prompt( 'What are you searching for?');

	if (!query) {
		return;
	}

	open("https://www.google.com/search?q=site:" + domain + "+" + query, "_blank");
})();

Just add this as the URL for a new bookmark, click that bookmark and you’ll be prompted for a search query. It’ll then do a site search for whatever site you’re already on!

Finally, I’ll get seconds of my time back!

Most practical applications probably include:

  • spot checking if a page is indexed
  • looking for potential cannibalization issues
Joshua DeGrasse-Baumann

Joshua DeGrasse-Baumann

I write about SEO, analytics, and practical tools to make web teams more effective.

Google Analytics skill icon
Google Tag Manager skill icon
CSS skill icon
JavaScript skill icon
ChatGPT (OpenAI) skill icon