User:Polygnotus/Scripts/VEbuttons.js: Difference between revisions

Content deleted Content added
Created page with '// Add custom buttons to Wikipedia's Visual Editor based on JSON configuration // Add this code to your common.js page on Wikipedia // (e.g., https://en.wikipedia.org/wiki/User:YourUsername/common.js) (function() { // Wait for the VisualEditor to be ready mw.loader.using(['ext.visualEditor.desktopArticleTarget', 'mediawiki.api']).then(function() { // Load JSON configuration and add buttons when VE is activated mw.hook('ve.activation...'
 
No edit summary
Line 36:
action: 'query',
prop: 'revisions',
titles: `User:${username}/VEbuttonsJSON.json`,
rvslots: '*',
rvprop: 'content',