Random Bookmark Bookmarklet

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Kim Scarborough

    #1

    Random Bookmark Bookmarklet

    I found this bookmarklet that will go to a random link on the currently open page:

    javascript:void (location.href= document.links[Math.round((doc ument.links.len gth-1)*Math.random( ))])

    Could this be changed to go to a random link from the bookmarks file in
    Mozilla-derived browsers? How would it be done?

    --
    ----------------------------------------------------------------------------
    Kim Scarborough http://www.unknown.nu/kim/
    ----------------------------------------------------------------------------
    Now listening to: Fleetwood Mac - "Man of the World"
    ----------------------------------------------------------------------------
  • Ivo

    #2
    Re: Random Bookmark Bookmarklet

    "Kim Scarborough" wrote[color=blue]
    > I found this bookmarklet that will go to a random link on the currently[/color]
    open page:[color=blue]
    >
    >[/color]
    javascript:void (location.href= document.links[Math.round((doc ument.links.len g
    th-1)*Math.random( ))])[color=blue]
    >
    > Could this be changed to go to a random link from the bookmarks file in
    > Mozilla-derived browsers? How would it be done?[/color]


    I had a bookmarklet like that on a page full of bookmarklets. That was fun.
    How would javascript read the bookmarks file?
    Ivo


    Comment

    Working...