From 065050a6a64761ca9e76ea4bbd9b90343c1ccfa4 Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Tue, 26 Jun 2012 16:22:13 +0200 Subject: Update JSONs to the latest bugzilla. And add a bit of instrumentation for next, when bugzilla changes again. --- data/lib/bugzillaDOMFunctions.js | 16 ++++++++++------ jsons/Config_data.json | 6 +++--- package.json | 2 +- update.rdf | 15 +++++++++++++++ 4 files changed, 29 insertions(+), 10 deletions(-) diff --git a/data/lib/bugzillaDOMFunctions.js b/data/lib/bugzillaDOMFunctions.js index 3fa1464..0856c67 100644 --- a/data/lib/bugzillaDOMFunctions.js +++ b/data/lib/bugzillaDOMFunctions.js @@ -445,15 +445,19 @@ function killNodes(doc, target, remove) { var elem = {}; // Don't run victimElements.forEach here as we are effectively // removing its members. + myDebug("config = " + config.toSource()); for(var i = 0, ii = victimElements.length; i < ii; i++) { elem = victimElements[i]; - try { - elem[1].parentNode.removeChild(elem[1]); + if (!config.doNotKill) { + try { + elem[1].parentNode.removeChild(elem[1]); + //elem[1].style.backgroundColor = "red"; + } + catch (e if e instanceof TypeError) { + myDebug("victimElements:\n" + victimElements.toSource()); + console.log("Cannot remove: " + elem[0]); + }; } - catch (e if e instanceof TypeError) { - myDebug("victimElements:\n" + victimElements.toSource()); - console.log("Cannot remove: " + elem[0]); - }; }; } diff --git a/jsons/Config_data.json b/jsons/Config_data.json index 701b6e9..064d711 100644 --- a/jsons/Config_data.json +++ b/jsons/Config_data.json @@ -126,9 +126,9 @@ [ "#field_label_cf_verified", "#field_container_cf_verified", - "#bz_show_bug_column_1 tr:nth-child(+8)", - "#bz_show_bug_column_1 tr:nth-child(+11)", - "#bz_show_bug_column_1 tr:nth-child(+13)", + "#bz_show_bug_column_1 tr:nth-child(+9)", + "#bz_show_bug_column_1 tr:nth-child(+12)", + "#bz_show_bug_column_1 tr:nth-child(+14)", "#field_label_cf_last_closed", "#field_label_cf_pm_score", "#field_label_cf_build_id", diff --git a/package.json b/package.json index a449d3b..6d3c457 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.6.3", + "version": "1.6.4", "contributors": [ "Ehsan Akhgari (http://ehsanakhgari.org/) ", "Johnathan Nightingale (http://johnath.com) ", diff --git a/update.rdf b/update.rdf index 12969c9..0679c55 100644 --- a/update.rdf +++ b/update.rdf @@ -307,6 +307,21 @@ xmlns:em="http://www.mozilla.org/2004/em-rdf#"> +
  • + + 1.6.4 + + + + {ec8030f7-c20a-464f-9b0e-13a3a9e97384} + 13.0 + 16.0a1 + + https://fedorahosted.org/released/bugzilla-triage-scripts/bugzilla-triage-1.6.4.xpi + + + +
  • -- cgit