って言われて、あらためて見てみると、確かにわざわざprototype.jsに依存するほどのことはないなと思ったのでちょっと修正。単体で動作するようになったはず。 http://github.com/technohippy/ProtoCommand/ <html> <head> <script src="http://github.com/technohippy/ProtoCommand/raw/master/src/protocommand.js"></script> <script> (function() { var konami = new ProtoCommand('up up down down left right left right b a'); konami.action = function() {document.body.style.backgroundColor