blob: 36394480869e082c33ea592ae69d71c426a92d8e (
plain) (
tree)
|
|
// Released under the MIT/X11 license
// http://www.opensource.org/licenses/mit-license.php
// "use strict";
function reloadPage() {
var stemURL = 'https://HOSTNAME/show_bug.cgi?id=';
var titleElems = document.getElementsByTagName('title');
if (titleElems) {
var REArr = new RegExp('[bB]ug\\s+([0-9]+)').
exec(titleElems[0].textContent);
var hostname = document.location.hostname;
if (REArr) {
document.location = stemURL.
replace('HOSTNAME',hostname) + REArr[1];
}
}
}
reloadPage();
|