aboutsummaryrefslogtreecommitdiffstats
path: root/data
diff options
context:
space:
mode:
Diffstat (limited to 'data')
-rw-r--r--data/lib/jumpNextBug.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/data/lib/jumpNextBug.js b/data/lib/jumpNextBug.js
new file mode 100644
index 0000000..f07bed0
--- /dev/null
+++ b/data/lib/jumpNextBug.js
@@ -0,0 +1,15 @@
+// Released under the MIT/X11 license
+// http://www.opensource.org/licenses/mit-license.php
+"use strict";
+var nextElement = {};
+var nextRE = new RegExp("Next");
+
+var aNavigElements = document.querySelectorAll("#bugzilla-body .navigation a");
+var filteredElements = Array.filter(aNavigElements, function(elem) {
+ return nextRE.test(elem.textContent);
+});
+if (filteredElements.length > 0) {
+ nextElement = filteredElements[0];
+ nextElement.setAttribute("accesskey", "n");
+ nextElement.innerHTML = "<u>N</u>ext";
+}