Created
May 16, 2013 23:23
-
-
Save jwalsh/5595905 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var docs = [ | |
"", // index 0 | |
"version", // index 1 | |
"", // index 2 | |
"", // index 3 | |
"", // index 4 | |
"", // index 5 | |
"", // index 6 | |
"", // index 7 | |
"", // index 8 | |
"", // index 9 | |
"", // index 10 | |
"", // index 11 | |
"", // index 12 | |
"", // index 13 | |
"", // index 14 | |
"", // index 15 | |
"", // index 16 | |
"", // index 17 | |
"", // index 18 | |
"", // index 19 | |
"", // index 20 | |
"", // index 21 | |
"", // index 22 | |
"navigator.appCodeName", // index 23 | |
"navigator.appName", // index 24 | |
"navigator.appVersion", // index 25 | |
"navigator.productSub", // index 26 | |
"", // index 27 | |
"", // index 28 | |
"", // index 29 | |
"", // index 30 | |
"navigator.platform", // index 31 | |
"", // index 32 | |
"", // index 33 | |
"navigator.language", // index 34 | |
"", // index 35 | |
"document.referrer", // index 36 | |
"", // index 37 | |
"", // index 38 | |
"", // index 39 | |
"", // index 40 | |
"", // index 41 | |
"", // index 42 | |
"Date valueOf()?", // index 43 | |
"", // index 44 | |
"6/7/2005 toLocaleString()", // index 45 | |
"", // index 46 | |
"", // index 47 | |
"", // index 48 | |
"", // index 49 | |
"", // index 50 | |
"", // index 51 | |
"", // index 52 | |
"", // index 53 | |
"", // index 54 | |
"", // index 55 | |
"Date getTimezoneOffset()", // index 56 | |
"Date toLocaleString()", // index 57 | |
"screen.depth", // index 58 | |
"screen.availWidth", // index 59 | |
"screen.availHeight", // index 60 | |
"screen.availLeft?", // index 61 | |
"screen.availTop", // index 62 | |
"", // index 63 | |
"", // index 64 | |
"", // index 65 | |
"", // index 66 | |
"", // index 67 | |
"", // index 68 | |
"", // index 69 | |
"", // index 70 | |
"", // index 71 | |
"", // index 72 | |
"", // index 73 | |
"", // index 74 | |
"", // index 75 | |
"", // index 76 | |
"", // index 77 | |
"", // index 78 | |
"", // index 79 | |
"", // index 80 | |
"" // index 81 | |
] | |
var chrome = 'TF1;015;;;;;;;;;;;;;;;;;;;;;;Mozilla;Netscape;5.0%20%28Macintosh%3B%20Intel%20Mac%20OS%20X%2010_7_5%29%20AppleWebKit/537.31%20%28KHTML%2C%20like%20Gecko%29%20Chrome/26.0.1410.65%20Safari/537.31;20030107;undefined;true;;true;MacIntel;undefined;Mozilla/5.0%20%28Macintosh%3B%20Intel%20Mac%20OS%20X%2010_7_5%29%20AppleWebKit/537.31%20%28KHTML%2C%20like%20Gecko%29%20Chrome/26.0.1410.65%20Safari/537.31;en-US;ISO-8859-1;www.welovesports.us;undefined;undefined;undefined;undefined;true;true;1368743894624;-8;6/7/2005%209%3A33%3A44%20PM;1680;1050;;11.7;;;;;8;480;420;5/16/2013%203%3A38%3A14%20PM;24;1680;970;0;22;;;;;;Shockwave%20Flash%7CShockwave%20Flash%2011.7%20r700;;;;;;;;;;;;;18;'.split(';'); | |
var opera = 'TF1;015;;;;;;;;;;;;;;;;;;;;;;Mozilla;Opera;9.80%20%28Macintosh%3B%20Intel%20Mac%20OS%20X%2010.7.5%29;;en;true;;true;MacIntel;undefined;Opera/9.80%20%28Macintosh%3B%20Intel%20Mac%20OS%20X%2010.7.5%29%20Presto/2.12.388%20Version/12.12;en;undefined;www.welovesports.us;undefined;undefined;undefined;undefined;true;true;1368743966671;-8;Tuesday%20June%2007%2C%2021%3A33%3A44%20GMT-0700%202005;1680;1050;;11.7;7.7.1;;;;20;480;420;Thursday%20May%2016%2C%2015%3A39%3A26%20GMT-0700%202013;32;1680;970;undefined;undefined;;;;;;Shockwave%20Flash%7CShockwave%20Flash%2011.7%20r700;;;;QuickTime%20Plug-in%207.7.1;;;;;;;;;19;'.split(';'); | |
var ie6 = 'TF1;015;5;7;22589;6%2C0%2C2900%2C5512;6%2C0%2C2900%2C5512;6%2C0%2C3%2C531;6%2C0%2C1%2C223;11%2C0%2C5721%2C5145;5%2C5000%2C3130%2C0;6%2C0%2C1%2C223;5%2C0%2C2918%2C1900;6%2C0%2C2900%2C5512;;6%2C0%2C2900%2C2180;4%2C74%2C9273%2C0;11%2C0%2C5721%2C5145;4%2C4%2C0%2C3400;6%2C0%2C2900%2C5512;6%2C0%2C2900%2C5512;4%2C71%2C1968%2C1;;Mozilla;Microsoft%20Internet%20Explorer;4.0%20%28compatible%3B%20MSIE%206.0%3B%20Windows%20NT%205.1%3B%20SV1%3B%20.NET%20CLR%201.1.4322%3B%20.NET%20CLR%202.0.50727%3B%20.NET%20CLR%203.0.4506.2152%3B%20.NET%20CLR%203.5.30729%3B%20.NET4.0C%29;%3BSP3%3B;en-us;true;x86;true;Win32;en-us;Mozilla/4.0%20%28compatible%3B%20MSIE%206.0%3B%20Windows%20NT%205.1%3B%20SV1%3B%20.NET%20CLR%201.1.4322%3B%20.NET%20CLR%202.0.50727%3B%20.NET%20CLR%203.0.4506.2152%3B%20.NET%20CLR%203.5.30729%3B%20.NET4.0C%29;en-us;windows-1252;www.welovesports.us;96;96;false;0;true;true;1368743906626;0;Tuesday%2C%20June%2007%2C%202005%209%3A33%3A44%20PM;1176;885;;WIN%2011%2C7%2C700%2C169;;;;;313;0;-60;Thursday%2C%20May%2016%2C%202013%2011%3A38%3A26%20PM;32;1176;855;undefined;undefined;;;;;;;;;;;;;;;;;;;19;'.split(';'); | |
// header | |
console.log( | |
[ | |
'', | |
'Index', | |
'Meaning', | |
'Chrome', | |
'Opera', | |
'IE', | |
'' | |
].join('||')); | |
String.prototype.truncate = function(l) { | |
var _l = l || 40; | |
var _s = this; | |
if (_s.length > _l) { | |
_s = this.split('').splice(0, _l - 1).join('') + '...'; | |
} | |
return _s; | |
} | |
for (var i = 0; i < docs.length; i++) { | |
console.log( | |
[ | |
, | |
i, | |
docs[i], | |
chrome[i].truncate(), | |
opera[i].truncate(), | |
ie6[i].truncate(), | |
, | |
].join(' | ')); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment