I have one boomarklet, means javascript code that takes current page's source, search for one string (or i can say hyperlink) and changes the current page to gathered link.
The problem is that
i want to make it run infinite times, if possible pausing in between to let the page load.
This is for just one of RPG i am playing, i am bored of Clicking that Exchange Flower link again and again and again. and its not offensive, or i ca say not ethical, they have many bookmarklets for doing some other kinda work, so ..
here is the Code
javascript:window.location.href=document.documentElement.innerHTML.substring(document.documentElement.innerHTML.indexOf("museum.php?rfc="),document.documentElement.innerHTML.indexOf("museum.php?rfc=")+18)+"&step=a2";
Thanks anyway...
It seems like you are asking about running some javascript on page load, since the script is navigating the page. Tools like Greasemonkey (for Firefox) are built for just this.
For Google Chrome, you could try this tool which converts bookmarklets into extensions.