User:Erutuon/scripts/addCleanupBar.js

//

// Add cleanup button wrapper if it doesn't exist. if ( !$("#wikitext-cleanup-button-wrapper").length ) $("#editform").prepend(' ');

window.addCleanupButton = function(text, id, functionName) {		// Append new button. if ( text && id && functionName ) $("#wikitext-cleanup-button-wrapper") .append(`${text} `); else console.log("No cleanup button added."); }; //