User:Wikiwide/common.js

// $('#mw-mywiki-example').html('any HTML'); // importScript('User:Gryllida/js/feedbackstuff.js'); /*importScript('User:N8wilson/AQFetcher.js'); // Linkback: User:N8wilson/AQFetcher.js*/ //importScript('User:Gryllida/gadgets/rater.js'); // User:Kephir/gadgets/rater //importScript('User:Gryllida/assessmentHelper.js'); // User:Kaldari/assessmentHelper.js /*importScript('User:YuviPanda/AssessmentBar/install.js'); importScript('User:Gryllida/gadgets/frinkle.js');*/

// no common js //mw.loader.load('//test.wikipedia.org/w/index.php?title=User:Gryllida/common.js' //+ '&action=raw&ctype=text/javascript');

// import the rater script for ve //importScript('User:Gryllida/rater-ve.js'); mw.loader.using(['mediawiki.api'], function {	var api = new mw.Api;	api.postWithToken({ action: 'edit', title: 'User:Gryllida', text: 'hi',//JSON.stringify(errors), summary: 'test' //contentformat: 'application/json' }).done(function (data){ console.log('saved'); alert(data); }); });