Random Bookmark Bookmarklet

K

Kim Scarborough

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

javascript:void(location.href=document.links[Math.round((document.links.length-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?

--
 
I

Ivo

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

javascript:void(location.href=document.links[Math.round((document.links.leng
th-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?


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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top