User:Sostenesbarros/common.js

// Qwikify addOnloadHook(   function  {         //addTab("javascript:doQwikify", "wikify", "ca-wikify", "Mark for wikification");        if ( wgAction === 'edit') {            addPortletLink( 'p-views', 'javascript:doQwikify', 'wikify', 'ca-wikify', 'Mark for wikification' );        } else if ( wgAction === 'view' ) {            addPortletLink( 'p-views', 'javascript:toggleContent', 'Toggle', 'ca-toggle', 'Toggle content' );        }    } ); function doQwikify { document.editform.wpTextbox1.value = "{" + "{wikify}}\n\n" + document.editform.wpTextbox1.value; document.editform.submit; }

function toggleContent { mw.util.$content.toggle( 1000 ); }