aboutsummaryrefslogblamecommitdiffstats
path: root/data/lib/jumpNextBug.js
blob: af0ff39175a7303045ee708cea786564bc026188 (plain) (tree)
1
2
3
4
5
6
7
8
9







                                                                               
                                       

                                  


                                             
 
// 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";
}