From b6e4ec64e4d5e4657bbb4e70e5ae19fa6d869a70 Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Wed, 7 Sep 2011 16:59:08 +0200 Subject: Make skipping unimportant pages work again. Skript generating RE was putting too many \/ into it. New release. Fixes #115. --- data/lib/skip-bug.js | 5 +---- lib/libbugzilla.js | 2 +- lib/main.js | 2 -- package.json | 2 +- update.rdf | 17 ++++++++++++++++- 5 files changed, 19 insertions(+), 9 deletions(-) diff --git a/data/lib/skip-bug.js b/data/lib/skip-bug.js index c909a3e..389eb54 100644 --- a/data/lib/skip-bug.js +++ b/data/lib/skip-bug.js @@ -3,15 +3,12 @@ // "use strict"; function reloadPage() { - var stemURL = 'https://HOSTNAME/show_bug.cgi?id='; var titleElems = document.getElementsByTagName('title'); if (titleElems) { var REArr = new RegExp('[bB]ug\\s+([0-9]+)') .exec(titleElems[0].textContent); - var hostname = document.location.hostname; if (REArr) { - document.location = stemURL.replace('HOSTNAME', hostname) - + REArr[1]; + document.location = '/show_bug.cgi?id=' + REArr[1]; } } } diff --git a/lib/libbugzilla.js b/lib/libbugzilla.js index c2c0828..53363a4 100644 --- a/lib/libbugzilla.js +++ b/lib/libbugzilla.js @@ -426,7 +426,7 @@ function processConfigJSON(rawJSON) { config.configData.skipMatchStr = origConstData.matches. map(function(x) { return x.replace("show_bug.cgi\\?id=.*", - "\\/(process_bug|post_bug|attachment).cgi$"); + "(process_bug|post_bug|attachment).cgi$"); }); } else { diff --git a/lib/main.js b/lib/main.js index 6561cba..d204b95 100644 --- a/lib/main.js +++ b/lib/main.js @@ -140,8 +140,6 @@ libbz.initialize(function(config) { }); }); - - //Allow toggling of CC event displays using a context menu entry contextMenu.Item({ label : "Toggle CC History", diff --git a/package.json b/package.json index 82916f9..3a10c4f 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "description": "Additional buttons and other function helping in the triage on bugzilla", "author": "Matej Cepl (http://matej.ceplovi.cz)", "license": "MIT/X11 (http://opensource.org/licenses/mit-license.php) and MPL", - "version": "1.4.6", + "version": "1.4.7", "contributors": [ "Ehsan Akhgari (http://ehsanakhgari.org/) ", "Johnathan Nightingale (http://johnath.com) ", diff --git a/update.rdf b/update.rdf index b67c151..be66e6b 100644 --- a/update.rdf +++ b/update.rdf @@ -142,7 +142,7 @@ xmlns:em="http://www.mozilla.org/2004/em-rdf#"> -
  • +
  • 1.4.6 @@ -157,6 +157,21 @@ xmlns:em="http://www.mozilla.org/2004/em-rdf#">
  • +
  • + + 1.4.7 + + + + {ec8030f7-c20a-464f-9b0e-13a3a9e97384} + 4.0b7 + 9.0a1 + + https://fedorahosted.org/released/bugzilla-triage-scripts/bugzilla-triage-1.4.7.xpi + + + +
  • -- cgit