User:Bobblewik/monobook.js/units nbsp.js: Difference between revisions

Content deleted Content added
Bobblewik (talk | contribs)
mNo edit summary
maintenance: more info ReferenceError: Can't find variable: addLink
 
(2 intermediate revisions by 2 users not shown)
Line 1:
//'winc' function allows buttons to be added toolbar
if(typeof winc !== 'undefined') {
 
winc('User:Omegatron/monobook.js/addlink.js');
}
 
function units_nbsp() {
Line 174 ⟶ 175:
}
 
addOnloadHook$(function () {
if(document.forms.editform) {
if(typeof addLink === 'undefined') return;
addLink('p-cactions', 'javascript:units_nbsp()', 'units_nbsp', 'ca-unitfixer', 'Fixes some unit formatting', '', '');
}