Skip to content

Instantly share code, notes, and snippets.

@e-orlov
Created January 14, 2022 16:11
Show Gist options
  • Save e-orlov/e0dbc2e658a2b8fb5207a55b5405e582 to your computer and use it in GitHub Desktop.
Save e-orlov/e0dbc2e658a2b8fb5207a55b5405e582 to your computer and use it in GitHub Desktop.
"Site:"-query for highlighted URL
javascript:s=""+(window.getSelection?window.getSelection():document.getSelection?document.getSelection():document.selection.createRange().text);s=s.replace(/\r\n|\r|\n/g," ,");if(!s)s=prompt("URL markieren!","");if(s!=null)window.open(%27https://www.google.de/search?num=100&q=site:%27+escape(s).replace(/ /g,"+"),%27_newtab%27);void 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment