The Spanner - Detecting browsers javascript hacks http://www.thespanner.co.uk/2009/01/29/detecting-browsers-javascript-hacks/
-----
//Firefox detector 2/3 by DoctorDan
FF=/a/[-1]=='a'
//Firefox 3 by me:-
FF3=(function x(){})[-5]=='x'
//Firefox 2 by me:-
FF2=(function x(){})[-6]=='x'
//IE detector I posted previously
IE='\v'=='v'
//Safari detector by me
Saf=/a/.__proto__=='//'
//Chrome by me
Chr=/source/.test((/a/.toString+''))
■ マシン
OS: Windows XP Home Edition Service Pack 3 (build 2600) (Japanese)
IE(Trident): 7.0.5730.13
CPU: 1 of INTEL (Intel(R) Pentium(R) M processor 1.73GHz)
RAM: 502MB (154MB Free)
FlashPlayer: 10.0.12.36
FireWall: Trend Micro Personal Firewall
原因がよく分からなかったので書き直した。
-----
(function(){
var a = document.getElementsByTagName("a"), s = "";
for(var i = 0; i < a.length; ++i){
if(a[i].href.match(/\.(?:png|jpg|jpeg)$/i))
s += a[i].href + "\n";
}
var t = document.createElement("textarea");
t.value = s;
document.getElementsByTagName("body")[0].appendChild(t);
})();