- if (navigator.userAgent.match(/Mac/)) {
- var e = document.getElementsByTagName('body')[0];
- e.className += ' mac';
- }
-
- var tree = document.getElementById('tree'),
- anchors = document.getElementsByTagName('a'),
- name = '/' + document.location.pathname.split('/')[1] + '/',
- offset;
+ // I'll go to hell for this
+ var isA = function(regex) { return navigator.userAgent.match(regex) };
+ var isAbout = function(regex) { return document.getElementsByTagName('h1')[1].textContent.match(regex) };