Last active
May 4, 2021 16:58
-
-
Save melanieimfeld/0169bb88d98c0b811a65324ff57480ae to your computer and use it in GitHub Desktop.
Second opinion bookmarklet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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