I use Google a lot to look for Java documentation.
Example: If I want to find documentation for HashMap
, I just google Java hashmap
and Google knows to redirect me to the javadoc
page.
However, it usually directs me to Java 1.4 or Java5 documentation, and I want Java6 documentation.
If I google Java 6 hashmap
, it works fine; the problem is I keep forgetting to put 6
and have to search twice.
Can I teach Google somehow that when I say Java
, I mean Java6
? (I have a Google account, so if it is somehow configurable via an account, I'm open for suggestions.)
Best Answer
I had the same problem/wish. This is what I did to solve it:
Edit the script slightly to make it work with Oracle's website. This is the edited script:
The only changes are to the
@include
URL and the regex.That way, whenever you open a Java documentation page, it redirects to the Java 6 version. If you ever really need to see an older version, you can temporarily disable the user script.