User:Joeyconnick/oldSearchHistory.js

// Revert to the non-OOUI version of page history search form, that appears // at the top of page histories

var oldFormHTML = `  Search for revisions   From year (and earlier):  From month (and earlier):  all January February March April May June July August September October November December Tag filter:   `

$('#mw-content-text > div.mw-htmlform-ooui-wrapper.oo-ui-layout.oo-ui-panelLayout.oo-ui-panelLayout-padded.oo-ui-panelLayout-framed') .before(oldFormHTML) .hide;

$('#year').val( mw.util.getParamValue('year') || (new Date.getFullYear)); $('#month').val(mw.util.getParamValue('month') || '-1'); $('#tagfilter').val(mw.util.getParamValue('tagfilter') || '');