Skip to content

Instantly share code, notes, and snippets.

@mapio mapio/bookmarklet.js
Last active Aug 29, 2015

Embed
What would you like to do?
A bookmarklet to go from Java 7 APIs documentation to Java 8 APIs documentation
javascript:window.location.assign(window.location.href.replace( /javase\/7\//, 'javase/8/' ));
@mapio

This comment has been minimized.

Copy link
Owner Author

commented Feb 24, 2015

Drag the above javascript to the bookmark tab.

Then, when viewing a Java API documentation page for Java 7, hit the bookmark to replace the page with the corresponding one for Java 8.

For instance, if you are viewing

http://docs.oracle.com/javase/7/docs/api/java/util/Comparator.html 

hitting the bookmarklet will take you to

http://docs.oracle.com/javase/8/docs/api/java/util/Comparator.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.