aboutsummaryrefslogblamecommitdiffstats
path: root/data/lib/skip-bug.js
blob: 055424ed717c54b14a656e8b1bf905dca49f8bac (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";

function reloadPage() {
  var titleElems = document.getElementsByTagName('title');
  if (titleElems) {
    var REArr = new RegExp('[bB]ug\\s+([0-9]+)')
        .exec(titleElems[0].textContent);
    if (REArr) {
      document.location = '/show_bug.cgi?id=' + REArr[1];
    }
  }
}

reloadPage();

//vim: set ts=2 et sw=2 textwidth=80: