(function () { var bookmarklet = prompt('Paste bookmarklet here'); if (bookmarklet) { Array.prototype.forEach.call(gBrowser.mTabs, function (tab) { gBrowser.getBrowserForTab(tab).contentWindow.document.location.href = bookmarklet; }); } })();
promptãããªãã¦ããã¯ãã¼ã¯ã®ä»»æã®ãã©ã«ã以ä¸ããé¸æãã¦å®è¡ã¨ãã§ããããã«ããããããã ã¨ã³ããã®æéãé¢åã
追è¨
Array.prototype.forEach.call(gBrowser.mTabs, function (tab) {
ãããªãã¦
Array.forEach(gBrowser.mTabs, function (tab) {
ã£ã¦æ¸ãããã ãã¯ã©ã¹ã¡ã½ãããç¥ããªãã£ããFirefox 1.5 の JavaScript の主な変更点: Days on the Moon