User:Yaris678/monobook.js

// Code by User:Jarry1250 to stop the "return" key taking effect in the "edit summary" box $(".mw-summary").keypress(function(e){ if (e.which == 13) { return false; } } );

// Code to add an "improve" button to the history page if (mw.config.get('wgAction') == 'history') //add a link to call histComb.js addOnloadHook(function{ var pagehis = document.getElementById('pagehistory'); if (!pagehis) return; var lnk = document.createElement('a'); lnk.style.marginLeft = '10px'; lnk.href = '#'; lnk.appendChild(document.createTextNode('Improve…')); lnk.onclick=function{this.parentNode.removeChild(this);importScript('User:Alex_Smotrov/histcomb.js')} pagehis.parentNode.insertBefore(lnk, pagehis); })