X-Git-Url: https://git.ktnx.net/?p=icedeb.git;a=blobdiff_plain;f=chrome%2Fcontent%2Ficedeb.js;h=742ca822dafc54c2a1631d55472f31e55995218b;hp=236112a0e51589694d39d41135725b452adefb8f;hb=233b8f5208d72f460fcb8637c27d8109b39dd940;hpb=249bfcc55cec68b7505b5a4987bfdab1f35c08b4 diff --git a/chrome/content/icedeb.js b/chrome/content/icedeb.js index 236112a..742ca82 100644 --- a/chrome/content/icedeb.js +++ b/chrome/content/icedeb.js @@ -114,6 +114,21 @@ IceDeb = { loadURI(uri); } }, + lookup_buildd: function(in_new) { + var keyword = IceDeb.trim_keyword(IceDeb.getClipboardText()); + var uri="https://buildd.debian.org/"; + + if (keyword) uri += keyword; + + if (in_new) { + var b = getBrowser(); + var new_tab = b.addTab(uri); + b.selectedTab = new_tab; + } + else { + loadURI(uri); + } + }, btsButton: function (e) { if ( e.button == 0 ) @@ -144,6 +159,12 @@ IceDeb = { IceDeb.lookup_ddpo(false) else if ( e.button == 1 ) IceDeb.lookup_ddpo(true); + }, + builddButton: function (e) { + if ( e.button == 0 ) + IceDeb.lookup_buildd(false) + else if ( e.button == 1 ) + IceDeb.lookup_buildd(true); } }