Anyone write java? Can someone please make me a bookmarklet (simple) PLEASE :-)?
Ok, I can't write java, and i would like a bookmarklet to do a simple task.
I want it to amend the URL of the current page and refresh it.
Basically, it's to add my University E-Proxy to a URL, so i can quickly access a journal.
Original URL is: http://www.nature.com/nature/journal/vaop/ncurrent...
Notice, ".ezproxy4.lib.le.ac.uk" is added after the root website.
It should then forward to a login page.
I would like a bookmarklet to add this automatically for me please.
This would be really helpful thanks!
Ok, it shortened the website.
it's basically (without the spaces):
www. nature. com.ezproxy4.lib. le.ac.uk /nature/journal/vaop/ncurrent/full/ nature 11729.html
Ok, i did this and it worked.
- green meklarLv 78 years agoFavorite Answer
If you copy this code:
// @name URL switcher
// @author green_meklar
// @include http://www.nature.com*
window.location=url.replace( "www.nature.com", "www.nature.com.ezproxy4.lib.le.ac.uk" );
and put it in a file ending in '.user.js', and open that file with your browser (with user script support), it should prompt you to install the user script. When the script is installed, it should perform the redirect as you wanted.
If your browser doesn't support user scripts and has no extensions for making them work, then I can't really help you.