ちゃんと動くといいなぁ。


javascript:(function(){var a = document.getElementsByTagName('a');var s = '';for(var i=0; i<a.length; i++){var h=''+a[i].getAttribute('href');if(h.match(/^#/)){h=null;}else if(h.match(/^\//)){h=location.protocol + '//' + location.host + h;}else if(h.match(/^http:/)){h=h;}else if(h.match(/^javascript:/)){h=null;}else if(h==null || h==''){h=null;}else{h=('' + location.href).match(/.*\//)+h;}if(h!=null){s+=h+'<br />'}};document.writeln(s);})();

tags: zlashdot JavaScript

Posted by NI-Lab. (@nilab)