From 7e5b949af761d56058e25294dc100729a3c5397a Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Tue, 26 Jun 2012 23:03:32 +0900 Subject: [PATCH] add ext --- _keysnail.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/_keysnail.js b/_keysnail.js index 56be619..46b3408 100644 --- a/_keysnail.js +++ b/_keysnail.js @@ -158,6 +158,15 @@ plugins.options["twitter_client.use_jmp"] = true; //////////////////////////////////////////// // my ext +ext.add("open-url-from-clipboard", function(){ + var list = command.getClipboardText().split("\n"); + for(var i = 0; i < list.length; i++){ + if(list[i] != ""){ + gBrowser.loadOneTab(list[i], null, null, null, false); + } + } +}, "open tabs of newline separated url list from clipboard"); + ext.add("list-url", function(){ var urls = []; var aa = window.content.document.getElementsByTagName("a");