Firefox ã§ã¯ãªãããã¼ãã«å¤ãã»ããããé¢æ°ãä½ãã¯ã³ã©ã¤ã
ã¿ã¤ãã«ãããFirefox 㧠firebug ã¤ãã£ã¦ãæã«çµæãã¯ãªãããã¼ãã«å
¥ãããï¼firebug ã®ã³ã³ã½ã¼ã«ãã³ããããã¨æ¹è¡ãç¡ããªã£ã¦ã¬ã¤ã¢ã¦ããä¹±ããï¼ã¨ããã setClipboard(scg.generate()) ãããï¼ã¨æã£ãã®ã§ããããã« setClipboard() ãã¯ã³ã©ã¤ãå®è£
ãã¦ã¿ã¾ããã
追è¨ã»Firebug ã«ã¯ copy ã¨ããã¯ãªãããã¼ãã«å
¥ããä¾¿å© API ããããã¨ã id:nitoyon ããã«æãã¦è²°ãã¾ããããªãã ã£ã¦ã¼ï¼
javascript:(function(){var B=document.createElement("object");document.body.appendChild(B);var A=document.createElement("param");A.setAttribute("name","allowScriptAccess");A.setAttribute("value","always");B.appendChild(A);B.setAttribute("data","http://svn.coderepos.org/share/lang/actionscript/set_clipboard/SetClipboard.swf");B.setAttribute("type","application/x-shockwave-flash");setClipboard=function(C){B.setClipboard(C)}})()
å®è£
㯠setClipboard ã ExternalInterface ã§ç»é²ãã swf ãã¡ã¤ã«ãèªã¿è¾¼ãã§é©å½ã«é¢æ°å®ç¾©ãã¦ãã ãã¨ãããIE ã§è©¦ãããåãã¾ããã§ããã深追ãã¯ãã¦ã¾ãã(IE ã¯ãã©ã¦ã¶ãã¤ãã£ãå®è£
ãããããããªãã)ã
ãã£ã¨è¯ãæ¹æ³ã§ãswf ã base64 ã¨ã³ã³ã¼ããã¦èªã¿è¾¼ãã§å¤é¨ã® swf ã«ä¾åããªããã¨ããã«ããã§ã¨ã¤æ¹æ³ã¯ãã§ã« mala ããã£ã¦ããã®ã§ãããhttp://la.ma.la/misc/js/setclipboard.txt ããã¡ã® Firefox 2.0 + FlashPlayer 9 ã ã¨ãã¾ãåããªãã£ãã®ã¨ãããã¡ããçããã¦ã¿ããã£ãã®ã§ãã¨è¨ã訳ã