This is a discussion on I miss the Google toolbar within the Chrome Talk section, part of the Google Chrome category: Originally Posted by inspiremore The two functions I loved from the Google Toolbar were "highlight on page" where I typed ...
Check out the javascript under "google highlighting" at "iamcal"
Or you can just create a new bookmark named "Highlight" and copy and paste this script:
javascript:var gtc = '#000000'; var glc = new Array('#ffff66','#a0ffff','#99ff99','#ff9999','#ff66ff'); function init_google(){ var pat = /google\./i; if (pat.exec(document.referrer) != null){ var u_p = document.referrer.split('?'); if (u_p[1]){ var u_a = u_p[1].split('&'); for(var i=0; i<u_a.length; i++){ var kv = u_a[i].split('='); if (kv[0] == 'q'){ g_g(d_u(kv[1])); return; } } } } } function d_u(url){ return unescape(url.replace(/\+/g,' ')); } function g_g(te){ te = te.replace(/\"/g,""); var t_s = te.split(' '); var c = 0; for(var i=0; i<t_s.length; i++){ h_g(t_s[i], document.body,glc[c]); c = (c == glc.length-1)?0:c+1; } } function h_g(te, container, color){ var t_l = te.toLowerCase(); for(var i=0; i<container.childNodes.length; i++){ var node = container.childNodes[i]; if (node.nodeType == 3){ var data = node.data; var d_l = data.toLowerCase(); if (d_l.indexOf(t_l) != -1){ var n_n = document.createElement('span'); node.parentNode.replaceChild(n_n,node); var res; while((res = d_l.indexOf(t_l)) != -1){ n_n.appendChild(document.createTextNode(data.substr(0,res))); n_n.appendChild(c_n_g(document.createTextNode(data.substr(res,te.length)),color)); data = data.substr(res + te.length); d_l = d_l.substr(res + te.length); } n_n.appendChild(document.createTextNode(data)); } }else{ h_g(te, node, color); } } } function c_n_g(child, color){ var node = document.createElement('span'); node.style.backgroundColor = color; node.style.color = gtc; node.appendChild(child); return node; };init_google();
Do a google search. Select a link and then click the bookmarklet.
To remove the highlights click the reload button
What I miss from the google toolbar is online google bookmarks, which I'm not sure how to enable and use as easily as with the toolbar.
MartinS, one of my biggest issues with using Chrome was not having access to all of the online google bookmarks that I had saved over time. All you need to do is pull up your google bookmarks and export them, then when it asks you, save them where you want them to be saved. Then pull up Chrome and import your bookmarks from the saved file.
I'm not sure if there's an easier way, but that's how I did it and it has made life much easier![]()
It would seem pretty obvious to have this, from the previous entries looks like a couple of things have been overlooked.
1. you are suggesting users add lots of javascript to do what the google toolbar does for you
2. you don't have google bookmarks! I spend all my time consolidating bookmarks into one place so i can use across multiple PCs and browsers and now can't use in a browser created by the people who did the bookmark tool!
3. SEO tools are not available in chrome.
Now a new browser might take a while to catch up with the competition in terms of features, however to miss out your own toolbar seems strange.
reasons 2 & 3 mean i cannot use chrome.
hellooo...
yeah....its really wonderful 2 work with google toolbar....its really very helpful....now u can instal the new beta version of google toolbar....
So far, all I've seen anyone complain about are links and bookmarks -- I miss my widgets! I had a search widget, a dictionary widget, and a wikipedia wizard on my google toolbar -- type a word or phrase and the definition or explanation was a single click away.
I understand that you can search from the toolbar, but my dictionary lookup and wikipedia lookup are now at least 2 clicks away, maybe 3.
I'm not happy about that.
Here is a script for highlighting. Sorry I don't know the source. Just reload the page to remove.
javascript:var gtc = '#000000'; var glc = new Array('#ffff66','#a0ffff','#99ff99','#ff9999','#ff66ff'); function init_google(){ var pat = /google\./i; if (pat.exec(document.referrer) != null){ var u_p = document.referrer.split('?'); if (u_p[1]){ var u_a = u_p[1].split('&'); for(var i=0; i<u_a.length; i++){ var kv = u_a[i].split('='); if (kv[0] == 'q'){ g_g(d_u(kv[1])); return; } } } } } function d_u(url){ return unescape(url.replace(/\+/g,' ')); } function g_g(te){ te = te.replace(/\"/g,""); var t_s = te.split(' '); var c = 0; for(var i=0; i<t_s.length; i++){ h_g(t_s[i], document.body,glc[c]); c = (c == glc.length-1)?0:c+1; } } function h_g(te, container, color){ var t_l = te.toLowerCase(); for(var i=0; i<container.childNodes.length; i++){ var node = container.childNodes[i]; if (node.nodeType == 3){ var data = node.data; var d_l = data.toLowerCase(); if (d_l.indexOf(t_l) != -1){ var n_n = document.createElement('span'); node.parentNode.replaceChild(n_n,node); var res; while((res = d_l.indexOf(t_l)) != -1){ n_n.appendChild(document.createTextNode(data.substr(0,res))); n_n.appendChild(c_n_g(document.createTextNode(data.substr(res,te.length)),color)); data = data.substr(res + te.length); d_l = d_l.substr(res + te.length); } n_n.appendChild(document.createTextNode(data)); } }else{ h_g(te, node, color); } } } function c_n_g(child, color){ var node = document.createElement('span'); node.style.backgroundColor = color; node.style.color = gtc; node.appendChild(child); return node; };init_google();