KeySnailで全てのタブのURLとタイトルをクリップボードにコピー

key.setViewKey(['u', 'a'], function (ev, arg) {
var tabs = gBrowser.mTabContainer;
var txt = ""; for( var i = 0; i < tabs.itemCount; i++ ) { var tab = tabs.childNodes[i]; var title = tab.label; var uri = tab.linkedBrowser.contentWindow.location.href; var txt = txt + title + " " + uri + "\n"; } const CLIPBOARD = Components.classes['@mozilla.org/widget/clipboardhelper;1'].getService(Components.interfaces.nsIClipboardHelper); CLIPBOARD.copyString(txt); }, '全てのタブをテキスト化', true);