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

Content deleted Content added
super ugly in source, but more correct
m Maintenance: Fixing deprecated call to addPortletLink (mw:ResourceLoader/Migration_guide_(users)#addPortletLink)
 
(3 intermediate revisions by 2 users not shown)
Line 1:
// See also [[User:Atrian/monobook.js/unitformatter.js]] and [[User:Bobblewik/monobook.js/unitformatter.js]]
 
function formatunits() {
var txt = document.editform.wpTextbox1;
Line 63 ⟶ 65:
}
 
addOnloadHook$(function () {
if(document.forms.editform) {
addLinkmw.util.addPortletLink('p-cactions', 'javascript:formatunits()', 'µ', 'ca-unitfixer', 'Fixes some unit formatting', '', '');
}
});