User:Mikhail Ryazanov/common.js

// remove ugly styles from buttons: $(".oo-ui-buttonInputWidget").removeClass("oo-ui-buttonInputWidget") $(".oo-ui-buttonElement-button").removeClass("oo-ui-buttonElement-button") // and checkboxes: $(".oo-ui-checkboxInputWidget").removeClass("oo-ui-checkboxInputWidget") // remove inflated field margins: $(".oo-ui-fieldLayout-header").removeClass("oo-ui-fieldLayout-header")

// Add quick edit summaries. function MRaes(e) { var input = document.getElementById('wpSummary') if (!input.value.match(/(^| )$/)) input.value += ', ' input.value += e.innerHTML document.getElementById('wpMinoredit').checked = true } var label = document.getElementById('wpSummaryLabel') if (label) label.firstChild.firstChild.innerHTML += ' dead link' + ', fmt.' + ', punct.' + ' ( MOS:LQ' + ', MOS:ENTO )' + ', source?' + ', style' + ' ( MOS:CAPS )' + ', <a onclick="MRaes(this)">wiki</a>'

// Add history and edit links to search results. var searchresults = document.getElementsByClassName('mw-search-result-heading') if (searchresults) for (var i = 0; i < searchresults.length; ++i) { var div = searchresults[i] var href = div.firstChild.href div.innerHTML += ' (<a href="' + href + '?action=history">H</a>' +                  ', <a href="' + href + '?action=edit">E</a>)' }