Yes this is possible but I'd try doing it as a browser extension/addon if I was you, Java might not be the way to go.

// Json