Welcome guest, is this your first visit? Create Account now to join.
Results 1 to 7 of 7

This is a discussion on Bookmarklet for PageRank within the Chrome Plugins section, part of the Google Chrome category: Copy and paste this into the place where the URL for a bookmark normally goes: Code: javascript :void((function(){var%20a=location.href;location.href="google.com/search?client=navclient-auto&ch=6-1484155081&features=Rank&q=info:"+escape(a);})())...


  1. #1
    woz2 is offline Junior Member
    Join Date
    Mar 2009
    Posts
    1

    Lightbulb Bookmarklet for PageRank

    Copy and paste this into the place where the URL for a bookmark normally goes:

    Code:
    javascript:void((function(){var%20a=location.href;location.href="google.com/search?client=navclient-auto&ch=6-1484155081&features=Rank&q=info:"+escape(a);})())

  2. #2
    Join Date
    Apr 2009
    Location
    Illinois
    Posts
    49

    Default

    Nice job. I love PageRank, and miss the Google Toolbar...

  3. #3
    Stamga's Avatar
    Stamga is offline Super Moderator/Designer
    Join Date
    Mar 2009
    Location
    Qc, Canada
    Posts
    601

    Default

    Thanks man!


  4. #4
    Join Date
    Apr 2009
    Location
    Illinois
    Posts
    49

    Default

    Is there anyway to make it open the pagerank page in a new tab? Or even a new window?

  5. #5
    Waha's Avatar
    Waha is offline Senior Member
    Join Date
    Apr 2009
    Location
    Oregon
    Posts
    788

    Default

    It didn't work initially, but the only problem was that you have to pass http:// when settings location.href or it will assume you meant a subdirectory of the site you're on for some reason. So what worked for me was:
    Code:
    javascript:void((function(){var%20a=location.href;location.href="http://google.com/search?client=navclient-auto&ch=6-1484155081&features=Rank&q=info:"+escape(a);})())
    For opening it in a new window try:
    Code:
    javascript:void((function(){var%20a=location.href;window.open("http://google.com/search?client=navclient-auto&ch=6-1484155081&features=Rank&q=info:"+escape(a));})())

  6. #6
    Waha's Avatar
    Waha is offline Senior Member
    Join Date
    Apr 2009
    Location
    Oregon
    Posts
    788

    Default

    It didn't work initially, but the only problem was that you have to pass http:// when settings location.href or it will assume you meant a subdirectory of the site you're on for some reason. So what worked for me was:
    Code:
    javascript:void((function(){var%20a=location.href;location.href="http://google.com/search?client=navclient-auto&ch=6-1484155081&features=Rank&q=info:"+escape(a);})())
    For opening it in a new window try:
    Code:
    javascript:void((function(){var%20a=location.href;window.open("http://google.com/search?client=navclient-auto&ch=6-1484155081&features=Rank&q=info:"+escape(a));})())

  7. #7
    Kyrax is offline Senior Member
    Join Date
    Apr 2009
    Location
    Qc, Canada
    Posts
    495

    Default

    Quote Originally Posted by L1ke 20 N1njas View Post
    Is there anyway to make it open the pagerank page in a new tab? Or even a new window?
    Change it to :

    Code:
    javascript:void((function(){var%20a=location.href;window.open("http://www.google.com/search?client=navclient-auto&ch=6-1484155081&features=Rank&q=info:"+escape(a));})())
    EDIT:

    Made it even better.
    Code:
    javascript:void((function(){var%20a=location.host;window.open("http://www.google.com/search?client=navclient-auto&ch=6-1484155081&features=Rank&q=info:"+escape(a));})())
    It now uses the host instead of the current href, which is usually what you want it to do.


    Hope it helps,

    Kyrax
    Last edited by Kyrax; 04-15-2009 at 04:07 AM.

Similar Threads

  1. Google Translate Selected to Any Language - Bookmarklet
    By vietnam in forum Chrome Tips & Tricks
    Replies: 4
    Last Post: 12-10-2010, 11:23 AM

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
  •