Not reviewed - copy of WebKitDetect script from wiki