Welcome guest, is this your first visit? Create Account now to join.
Page 1 of 6 123 ... LastLast
Results 1 to 10 of 59

This is a discussion on Google Toolbar for Chrome within the Chrome Tips & Tricks section, part of the Google Chrome category: Well not quite a Google Toolbar, but as close as we can get with no plugin API. Also this has ...


  1. #1
    Chrome's Avatar
    Chrome is offline Administrator
    Join Date
    Sep 2008
    Posts
    345

    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
    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
    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:
    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
    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
    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:
    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
    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
    javascript:var%20t=((window.getSelection&&window.getSelection())||(document.getSelection&&document.g etSelection())||(document.selection%20&&document.selection.createRange&&document.selection.createRan ge().text));var%20e=(document.charset||document.characterSet);if(t!=''){location.href='http://translate.google.com/translate_t?text='+t+'&hl=en&tbb=1&ie='+e;}else{location.href='http://translate.google.com/translate?u='+escape(location.href)+'&hl=en&tbb=1&ie='+e;};
    Pages Indexed in Yahoo
    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
    javascript:location.href='http:/'+'/search.yahoo.com/search?p=linkdomain%3A'+document.domain.replace('www.','')+'%20-site%3a'+document.domain.replace('www.','')+'&%23038;n=100';
    Pages Indexed in MSN
    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
    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
    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
    javascript:void((function(){var%20a=location.href.replace(/^http%5C:%5C/%5C/(.*)$/,"$1");location.href="http://siteanalytics.compete.com/"+escape(a);})())
    Archive.org
    javascript:void((function(){var%20a=location.href.replace(/^http%5C:%5C/%5C/(.*)$/,"$1");location.href="http://web.archive.org/web/*/"+escape(a);})())
    Delicious Bookmarks
    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
    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
    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="+escape(a);})())
    DomainTools Domain Lookup
    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
    javascript:location.href='http://validator.w3.org/check?uri='%20+%20document.location.href%20+%20%20'&doctype=Inline';
    Validate Page CSS at W3C
    javascript:javascript:location.href='http://jigsaw.w3.org/css-validator/validator?uri='%20+%20document.location.href;
    Highlight Nofollow Links Red
    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
    javascript:void(location.href='http://'%20+%20location.host%20+%20'/robots.txt')
    Page Last Modified Date
    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
    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.


  2. #2
    Chrome's Avatar
    Chrome is offline Administrator
    Join Date
    Sep 2008
    Posts
    345

    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
    javascript:if%20(location.pathname%20==%20"/");%20else%20if%20(location.pathname.charAt(location.pathname.length-1)%20==%20"/")%20location%20=%20"..";%20else%20location%20=%20".";%20void%200
    Up to the Domains Top Level
    javascript:void(location.pathname='\\')
    Highlight all Links on a page Yellow
    javascript:for(nIx5Bs=0;nIx5Bs<document.all.length;nIx5Bs++){if(document.all[nIx5Bs].tagName=='A'){with(document.all[nIx5Bs].style){if(backgroundColor=='yellow'){void(backgroundColor=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.
    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.splitText(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
    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.

    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.contentDocument.defaultView)){b=d.createElement("div");b.style .width=N.width;%20b.style.height=N.height;b.innerHTML="<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)})()

  3. #3
    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!

  4. #4
    Chrome's Avatar
    Chrome is offline Administrator
    Join Date
    Sep 2008
    Posts
    345

    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.

  5. #5
    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

  6. #6
    Chrome's Avatar
    Chrome is offline Administrator
    Join Date
    Sep 2008
    Posts
    345

    Default

    No problems Edy and sorry about that, for some strange reason the board decided to randomly add a space in that one.

  7. #7
    TinoTriste is offline 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'/')

  8. #8
    Don Quiyote is offline 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?

  9. #9
    Chrome's Avatar
    Chrome is offline Administrator
    Join Date
    Sep 2008
    Posts
    345

    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.

  10. #10
    Don Quiyote is offline 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

Page 1 of 6 123 ... LastLast

Similar Threads

  1. I miss the Google toolbar
    By aha in forum Chrome Talk
    Replies: 26
    Last Post: 12-02-2011, 09:04 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •