Nevermind, found a javascript library to do safari.

Woop.