Skip to content

Instantly share code, notes, and snippets.

@melanieimfeld
Last active May 4, 2021 16:58
Show Gist options
  • Save melanieimfeld/0169bb88d98c0b811a65324ff57480ae to your computer and use it in GitHub Desktop.
Save melanieimfeld/0169bb88d98c0b811a65324ff57480ae to your computer and use it in GitHub Desktop.
Second opinion bookmarklet
//copied from https://www.thetechbasket.com/most-useful-bookmarklets/#Second-Opinion-Search
javascript: Q = [];
c = location.search.slice(1).split('&');
for (i in c) {
f = c[i].split('=');
if (f[0] == 'q' || f[0] == 'as_q' || f[0] == 'p' || f[0] == 'query')
if (f[1]) Q.push(f[1])
}
R = unescape(Q.join('; ').replace(/\+/g, ' '));
location = 'https://www.google.com/?q=' + escape(R);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment