1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
10 if (navigator
.oscpu
.search(/Linux/) != -1)
12 else if (navigator
.oscpu
.search(/Mac/) != -1)
14 else if (navigator
.oscpu
.search(/Windows/) != -1)
19 function userOnBeforePage()
21 dlog('userOnBeforePage()');
24 function userOnPause()
26 dlog('userOnPause()');
29 function userOnAfterPage()
31 dlog('userOnAfterPage()');
33 var win
= gSpider
.mDocument
.defaultView
;
34 if (win
.wrappedJSObject
)
36 win
= win
.wrappedJSObject
;
39 //cdump('processing = ' + win.location.href);
41 var links
= win
.document
.links
;
42 var length
= links
.length
;
45 for (var ilink
= 0; ilink
< length
; ilink
++)
48 var href
= links
[ilink
].href
;
50 if (typeof gURLS
[href
] != 'undefined')
58 if (/\.linux-i686\.tar\.(gz|bz2)$/.test(href
))
60 cdump('href: ' + href
);
65 if (/\.mac\.dmg$/.test(href
))
67 cdump('href: ' + href
);
72 if (/\.win32\.(zip|installer\.exe)$/.test(href
))
74 cdump('href: ' + href
);
83 gPageCompleted
= true;