User:ActuallyNeverHappened02/SimpleEnglishChecker.js

// Make sure the utilities module is loaded (will only load if not already) mw.loader.using( 'mediawiki.util', function {

// Wait for the page to be parsed $( document ).ready( function {

//see below "Portlets" subsection var link = mw.util.addPortletLink('p-tb', '#', 'Simple English Checker', 'tb-sec', 'Simple English Checker'); $( link ).click( function ( event ) {           event.preventDefault;            sec;        } ); } ); } );

function sec{ $('#bodyContent').prepend(' my userpage, hooray! click it.'); }