--- /dev/null
+var INFO = xml`
+ <plugin name="mojang-jira" version="0.1"
+ href=""
+ summary="Search MoJIRA"
+ lang="en-US"
+ xmlns="http://vimperator.org/namespaces/liberator">
+ <author email="pho@cielonegro.org">PHO</author>
+ <license href="http://creativecommons.org/publicdomain/zero/1.0/legalcode">CC0 1.0 Universal</license>
+ <project name="Vimperator" minVersion="3.0"/>
+ </plugin>
+`;
+
+(function () {
+
+var base_URI = 'https://bugs.mojang.com';
+
+function mojira(opts) {
+ if (opts.query) {
+ var URI = base_URI + '/secure/QuickSearch.jspa?searchString=' + encodeURIComponent(opts.query);
+ liberator.open(URI, opts.tab);
+ }
+ else {
+ liberator.open(base_URI, opts.tab);
+ }
+}
+
+liberator.modules.commands.addUserCommand(
+ ['mojira'],
+ 'Search MoJIRA',
+ function (args) {
+ mojira({
+ query: args.string.length > 0 ? args.string : null,
+ tab: args.bang ? liberator.NEW_TAB : liberator.CURRENT_TAB
+ });
+ },
+ {
+ bang: true,
+ argCount: '*'
+ },
+ true
+);
+
+})();