Bookmark that takes the displaying URL and adds additional string Bookmark that takes the displaying URL and adds additional string google-chrome google-chrome

Bookmark that takes the displaying URL and adds additional string


Just add some javascript to change the window.location.href attribute.

The following will help

javascript:(    function(){        f='cache:'+window.location.href;        if(!window.open(f))            location.href=f;    })()

You can change and set the href to whatever you want

You have to add this javascript to an anchor tag so that when the link is dragged and dropped in a browser's bookmarklet bar, it get added. So the link will be like this:

<a title="GotoCache" href="javascript:(function(){f='cache:'+window.location.href;if(!window.open(f))location.href=f;})()">Goto Cache</a>

Add this link in a page and you are set :)