User:Bobblewik/monobook.js/unitformatter.js: Difference between revisions

Content deleted Content added
Bobblewik (talk | contribs)
mNo edit summary
m Maintenance: Replacing addOnloadHook with native jQuery (mw:ResourceLoader/Migration_guide_(users)#addOnloadHook - phab:T130879)
 
(One intermediate revision by one other user not shown)
Line 178:
 
// square foot
txt.value = txt.value.replace(/sq\.?\s?ft?/gi, 'sq ft');
 
// foot and inch
Line 274:
}
 
addOnloadHook$(function () {
if(document.forms.editform) {
addLink('p-cactions', 'javascript:formatunits()', 'units', 'ca-unitfixer', 'Fixes some unit formatting', '', '');