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

Content deleted Content added
No edit summary
No edit summary
Line 36:
action: 'query',
prop: 'revisions',
titles: `User:${username}/VEbuttonsJSON.jsonVisualEditorButtonsJSON`,
rvslots: '*',
rvprop: 'content',
Line 75:
let content = config.insertText;
// Handle the strange string concatenation pattern found in the JSON
if (typeof content === 'string') {
// This handles patterns like "text" + ":more" or "pre~~" + "~~post"
content = content.replace(/'"\s*\+\s*'"/g, '');
}