diff options
-rw-r--r-- | data/lib/bugzillaDOMFunctions.js | 16 | ||||
-rw-r--r-- | jsons/Config_data.json | 6 | ||||
-rw-r--r-- | package.json | 2 | ||||
-rw-r--r-- | 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/) <ehsan@mozilla.com>", "Johnathan Nightingale (http://johnath.com) <johnath@mozilla.com>", @@ -307,6 +307,21 @@ xmlns:em="http://www.mozilla.org/2004/em-rdf#"> </em:targetApplication> </Description> </li> + <li> + <Description> + <em:version>1.6.4</em:version> + <em:targetApplication> + <Description> + <em:id> + {ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id> + <em:minVersion>13.0</em:minVersion> + <em:maxVersion>16.0a1</em:maxVersion> + <em:updateLink> + https://fedorahosted.org/released/bugzilla-triage-scripts/bugzilla-triage-1.6.4.xpi</em:updateLink> + </Description> + </em:targetApplication> + </Description> + </li> </Seq> </em:updates> </Description> |