Go Back   Google Chrome Forums > Google Chrome > Chrome Tips & Tricks

Reply
 
Thread Tools Display Modes
  #1  
Old 09-15-2008, 09:52 AM
Chrome's Avatar
Administrator
 
Join Date: Sep 2008
Posts: 143
Default Google Toolbar for Chrome

Well not quite a Google Toolbar, but as close as we can get with no plugin API. Also this has a lot of the functionality of the SEOQuake addon for Firefox, so if your a webmaster or SEO these can be pretty useful for Chrome.

They are used just like bookmarks, so create a new bookmark, name it something self explanitory and for the URL place the corresponding code. Until we get real webmaster or SEO tools for Google Chrome these do a pretty good job of getting around the problem.

I will also add more as time goes on.

Google Cache
Quote:
javascript:void((function(){var%20a=location.href. replace(/^http%5C:%5C/%5C/(.*)$/,"$1");location.href="http://www.google.com/search?q=cache:"+escape(a);})())
Google Links
Quote:
javascript:void((function(){var%20a=location.href. replace(/^http%5C:%5C/%5C/(.*)$/,"$1");location.href="http://www.google.com/search?q=link:"+escape(a);})())
Google Site:
Quote:
javascript:void((function(){var%20a=location.href. replace(/^http%5C:%5C/%5C/(.*)$/,"$1");location.href="http://www.google.com/search?q=site:"+escape(a);})())
Search for URL
Quote:
javascript:void((function(){var%20a=location.href. replace(/^http%5C:%5C/%5C/(.*)$/,"$1");location.href="http://www.google.com/search?q="+escape(a);})())
Google Images from Site
Quote:
javascript:void((function(){var%20a=location.href. replace(/^http%5C:%5C/%5C/(.*)$/,"$1");location.href="http://images.google.com/images?hl=en&q="+escape(a);})())
Google Info:
Quote:
javascript:void((function(){var%20a=location.href. replace(/^http%5C:%5C/%5C/(.*)$/,"$1");location.href="http://www.google.com/search?q=info:"+escape(a);})())
Related Sites/Pages
Quote:
javascript:void((function(){var%20a=location.href. replace(/^http%5C:%5C/%5C/(.*)$/,"$1");location.href="http://www.google.com/search?q=related:"+escape(a);})())
Translate Page to English
Quote:
javascript:var%20t=((window.getSelection&&window.g etSelection())||(document.getSelection&&document.g etSelection())||(document.selection%20&&document.s election.createRange&&document.selection.createRan ge().text));var%20e=(document.charset||document.ch aracterSet);if(t!=''){location.href='http://translate.google.com/translate_t?text='+t+'&hl=en&tbb=1&ie='+e;}else{lo cation.href='http://translate.google.com/translate?u='+escape(location.href)+'&hl=en&tbb=1& ie='+e;};
Pages Indexed in Yahoo
Quote:
javascript:void((function(){var%20a=location.href. replace(/^http%5C:%5C/%5C/(.*)$/,"$1");location.href="http://search.yahoo.com/search?p="+escape(a);})())

Yahoo Backlinks
Quote:
javascript:location.href='http:/'+'/search.yahoo.com/search?p=linkdomain%3A'+document.domain.replace('w ww.','')+'%20-site%3a'+document.domain.replace('www.','')+'&%230 38;n=100';
Pages Indexed in MSN
Quote:
javascript:void((function(){var%20a=location.href. replace(/^http%5C:%5C/%5C/(.*)$/,"$1");location.href="http://search.msn.com/results.aspx?q=site:"+escape(a);})())
Yahoo Directory
Quote:
javascript:void((function(){var%20a=location.href. replace(/^http%5C:%5C/%5C/(.*)$/,"$1");location.href="http://search.yahoo.com/search/dir?h=c&p="+escape(a);})())
Alexa Rank
Quote:
javascript:void((function(){var%20a=location.href. replace(/^http%5C:%5C/%5C/(.*)$/,"$1");location.href="http://alexa.com/data/details/traffic_details?q=&url="+escape(a);})())
Compete.com Details
Quote:
javascript:void((function(){var%20a=location.href. replace(/^http%5C:%5C/%5C/(.*)$/,"$1");location.href="http://siteanalytics.compete.com/"+escape(a);})())
Archive.org
Quote:
javascript:void((function(){var%20a=location.href. replace(/^http%5C:%5C/%5C/(.*)$/,"$1");location.href="http://web.archive.org/web/*/"+escape(a);})())
Delicious Bookmarks
Quote:
javascript:void((function(){var%20a=location.href. replace(/^http%5C:%5C/%5C/(.*)$/,"$1");location.href="http://del.icio.us/url/check?url="+escape(a);})())
Technorati
Quote:
javascript:void((function(){var%20a=location.href. replace(/^http%5C:%5C/%5C/(.*)$/,"$1");location.href="http://technorati.com/search/"+escape(a);})())
URL Mentions on Digg
Quote:
javascript:void((function(){var%20a=location.href. replace(/^http%5C:%5C/%5C/(.*)$/,"$1");location.href="http://digg.com/search?area=all&age=all&sort=new&type=all&s="+esca pe(a);})())
DomainTools Domain Lookup
Quote:
javascript:void((function(){var%20a=location.href. replace(/^http%5C:%5C/%5C/(.*)$/,"$1");location.href="http://whois.domaintools.com/"+escape(a);})())
Validate Page HTML at W3C
Quote:
javascript:location.href='http://validator.w3.org/check?uri='%20+%20document.location.href%20+%20%20 '&doctype=Inline';
Validate Page CSS at W3C
Quote:
javascript:javascript:location.href='http://jigsaw.w3.org/css-validator/validator?uri='%20+%20document.location.href;
Highlight Nofollow Links Red
Quote:
javascript:var%20t=document.getElementsByTagName(' a');for(i=0;i<t.length;i++){if(t[i].rel.toLowerCase()=='nofollow'){void(t[i].style.color='red');}}
Show Domains Robots.txt
Quote:
javascript:void(location.href='http://'%20+%20location.host%20+%20'/robots.txt')
Page Last Modified Date
Quote:
javascript:if(frames.length<1){alert('The%20server %20indicates%20that%20the%20page%20was%20last%20mo dified:%20'%20+%20window.document.lastModified)}
Number of Links on a Page
Quote:
javascript:if(frames.length<1){alert('This%20page% 20has%20'%20+%20document.links.length%20+%20'%20li nks.')}
Also many people are probably not aware but you can drag these Bookmarklets below the Omnibar which gives you a simple "Toolbar" which allows you to access all these functions with one click to save going Bookmarks >> Function.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 09-15-2008, 11:21 AM
Chrome's Avatar
Administrator
 
Join Date: Sep 2008
Posts: 143
Default

Also here is 2 more, in Firefox i have an extension and on right click it enables you to Dig up directory levels on a site. For example if used on this page:

http://www.chromeplugins.org/google/...0-post187.html

Digging up a level will take you to:

http://www.chromeplugins.org/google/chrome-tips-tricks/

And so on until your at the domain root. If you add this as a bookmark it will enable you to do dig up directory levels when clicked.

Up One Level
Quote:
javascript:if%20(location.pathname%20==%20"/");%20else%20if%20(location.pathname.charAt(locati on.pathname.length-1)%20==%20"/")%20location%20=%20"..";%20else%20location%20=%20 ".";%20void%200
Up to the Domains Top Level
Quote:
javascript:void(location.pathname='\\')
Highlight all Links on a page Yellow
Quote:
javascript:for(nIx5Bs=0;nIx5Bs<document.all.length ;nIx5Bs++){if(document.all[nIx5Bs].tagName=='A'){with(document.all[nIx5Bs].style){if(backgroundColor=='yellow'){void(backgro undColor=document.bgColor)}else{void(backgroundCol or='yellow')}}}}
Make URL's Clickable

Another cool FireFox extension i miss is the ability to double click non-hyperlink links to visit the URL instead of copying and pasting them in a new tab. This one will make all non-hyperlinks on a page clickable.
Quote:
javascript: )function(){var%20D=document;%20D.body.normalize() ;%20F(D.body);%20function%20F(n){var%20u,A,M,R,c,x ;%20if(n.nodeType==3){%20u=n.data.search(/https?\:\/\/[^\s]*[^.,">\s\)\]]/);%20if(u>=0)%20{%20M=n.splitText(u);%20R=M.splitT ext(RegExp.lastMatch.length);%20A=document.createE lement("A");%20A.href=M.data;%20A.appendChild(M);% 20R.parentNode.insertBefore(A,R);%20}%20}else%20if (n.tagName!="STYLE"%20&&%20n.tagName!="SCRIPT"%20& &%20n.tagName!="A")for(c=0;x=n.childNodes[c];++c)F(x);%20}%20})();
Display all links on a page in new tab
Quote:
javascript:WN7z=open('','Z6','width=450,height=600 ,scrollbars,resizable,menubar');DL5e=document.link s;with(WN7z.document){write('<base%20target=_blank >');for(lKi=0;lKi<DL5e.length;lKi++){write(DL5e[lKi].toString().link(DL5e[lKi])+'<br><br>')};void(close())}
Removes Flash, Java and Background Music

A "kind of" Adblock, if you encounter an annoying page click this and kill the junk.

Quote:
javascript: (function(){function%20R(w){try{var%20d=w.document ,j,i,t,T,N,b,r=1,C;for(j=0;t=["object","embed","applet","iframe"][j];++j){T=d.getElementsByTagName(t);for(i=T.length-1;(i+1)&&(N=T[i]);--i)if(j!=3||!R((C=N.contentWindow)?C:N.contentDocum ent.defaultView)){b=d.createElement("div");b.style .width=N.width;%20b.style.height=N.height;b.innerH TML="<del>"+(j==3?"third-party%20"+t:t)+"</del>";N.parentNode.replaceChild(b,N);}}}catch(E){r =0}return%20r}R(self);var%20i,x;for(i=0;x=frames[i];++i)R(x)})()
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 09-17-2008, 02:08 PM
Edy Edy is offline
Junior Member
 
Join Date: Sep 2008
Posts: 2
Default

The "Up One Level" bookmark seems not to do anything... I've copied / pasted the code into a Bookmark and put it in the bookmark bar (named "Level UP"), but nothing happens when clicked. Can anyone else verify this?

Thank you!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 09-17-2008, 07:50 PM
Chrome's Avatar
Administrator
 
Join Date: Sep 2008
Posts: 143
Default

Looks like the board added a space in the word 'location' in this section:

locati on.pathname

Just try removing the space and it should work, let me know if it doesn't.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5  
Old 09-19-2008, 11:24 AM
Edy Edy is offline
Junior Member
 
Join Date: Sep 2008
Posts: 2
Default

Now works perfect, thank you!
I really missed this function while using Chrome (I was addict to Google Toolbar Lite for Firefox).

Thanks again!
Edy
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6  
Old 09-19-2008, 02:41 PM
Chrome's Avatar
Administrator
 
Join Date: Sep 2008
Posts: 143
Default

No problems Edy and sorry about that, for some strange reason the board decided to randomly add a space in that one.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7  
Old 09-25-2008, 02:29 PM
Junior Member
 
Join Date: Sep 2008
Posts: 1
Smile Up to the Domains Top Level (Alternative)

You can also use the following to get back to the site's homepage:

Up to the Domains Top Level (Alternative)

Code:
javascript:void(location.href='http://'%20+%20location.host%20+%20'/')
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8  
Old 09-30-2008, 09:14 PM
Junior Member
 
Join Date: Sep 2008
Posts: 2
Default Request for scriptlet: Search this site ...

I appreciate using bookmarklets such as those above to extend functionality. But there is one script that I have been looking for unsuccessfully. A script solution that would allow me to work better from Chrome.

I often research for academic and technical documents with Google Scholar. Another way of finding relevant reports is to focus on specific sites, e.g. a university, UN agencies, govt departments etc That's easy by adding the site:XXX in a Google search. What is needed to do that directly with a link to a site and better still, a list of sites found e.g. on a directory page.

I would like to be able to highlight one, 5,10 or 20 URL's, and then trigger a script which pops up an input box for a search term, and then will carry out a site limited Google search for this term.

Ideally mixing search results on one page, but I would also be content with a tab each. Or, at least, a simple, "search this site bookmarklet" would be a start.

Anybody up for this?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9  
Old 10-01-2008, 06:07 AM
Chrome's Avatar
Administrator
 
Join Date: Sep 2008
Posts: 143
Default

Hi Don, interesting idea. Ok have a test of this, i have added a bunch of Universities and when you highlight a word on a page and click the bookmarklet it will query Google and add check boxes for each uni across the top of the screen.

It doesn't mix results from all together, i don't know if Google can do this but i will look in to it. It does add radio buttons so you can click it to search the university instead of manually doing a site: command.

Try it: http://www.chromeplugins.org/university.html

You can add more, less or change the sites to search with the bookmark. I also done a Google Scholar one to search in there.

I know this probably isn't "exactly" how you want it but it's getting close, bookmarklets can be quite powerful but they have a lot of limitations.

Edit: To mix results from a number of sites, you can create a custom Google search engine. You need a Google account to do it, but i should be able to create a bookmarklet to search in your custom engine by highlighting text on a page.

That's another option.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10  
Old 10-01-2008, 09:14 AM
Junior Member
 
Join Date: Sep 2008
Posts: 2
Default Re: Request for scriptlet: Search this site ...

Thanks. Interesting, and useful template to set up for regular searches.

Your suggestion for using custom search is probably the way to go. Hadn't noticed, but it is possible to configure the sites to search. I will certainly use that more.

What I wished for was ad hoc searching. I am doing academic research. When I come across a site such as this Pacific Island Regional Organizations, I want to select a block of links and search those only.

I don't mind this being two step process, especially since once started I probably want to repeat this with different search terms. So, a script that would strip the HTML in the selection and return a set of domains (not full addresses), and comma delimited would solve this. After copying to clipbaord I would then follow another bookmark directly to the Google CSE panel and easily configure a search from there. Even better, I can then continue to improve it.

A "Copy Multiple Link Domains" script to complement the built in "Copy Link Address"? Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
bookmarks, google toolbar, seo, seo quake, seoquake, toolbar

Thread Tools
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
I miss the Google toolbar aha Chrome Talk 25 04-07-2009 12:25 AM




Chrome Central - Chrome Talk - Chrome Tips and Tricks - Chrome Plugins - Chrome Themes - Chrome Tools - Bugs and Vulnerabilities - Chrome Tech - General Chat


All times are GMT. The time now is 01:33 AM.


Powered by vBulletin® Version 3.7.4 PL1
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Google Chrome and Google™ is a Trademark of Google Inc
This site chromeplugins.org is not affiliated with or sponsored by Google Inc.
Thanks: Taree SEO Forum and John