User:Equazcion/sandbox5.js

if ( wgPageName == 'User:Equazcion/ContribsTabVector' ) { //lagText = $('.mw-lag-warn-high').find('p').html; lagText = "Due to high database server lag, changes newer than 450 seconds may not appear in this list." lagSecs = lagText.match(/\d+/g); if (typeof lagSecs[1] != "undefined") lagSecs = lagSecs[0] + lagSecs[1]; alert(lagSecs); lagMin = Math.floor(lagSecs / 60); lagSecRemain = lagSecs % 60; newText = lagText.replace("seconds", "seconds (" + lagMin + " minutes, " + lagSecRemain + " seconds" + ")"); alert(newText); //$('.mw-lag-warn-high').find('p').html(newText); }