User:WikiMasterGhibif/common.js

var AutoEd_baseurl = 'http://en.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=Wikipedia:AutoEd/'; if (location.protocol === 'https:') { AutoEd_baseurl = 'https://en.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=Wikipedia:AutoEd/'; } //Import individual modules for use mw.loader.load(AutoEd_baseurl + 'unicodify.js'); // autoEdUnicodify converts HTML entities to WikiText mw.loader.load(AutoEd_baseurl + 'isbn.js'); // autoEdISBN fixes ISBN syntax so that WikiMagic can work mw.loader.load(AutoEd_baseurl + 'whitespace.js'); // autoEdWhitespace cleans up whitespace mw.loader.load(AutoEd_baseurl + 'wikilinks.js'); // autoEdWikilinks simplifies and shortens wikilinks where appropriate mw.loader.load(AutoEd_baseurl + 'htmltowikitext.js'); // autoEdHTMLtoWikitext converts HTML to wikitext mw.loader.load(AutoEd_baseurl + 'headlines.js'); // autoEdHeadlines fixes common headline errors and renames some headers mw.loader.load(AutoEd_baseurl + 'unicodecontrolchars.js'); // autoEdUnicodeControlChars converts HTML to wikitext mw.loader.load(AutoEd_baseurl + 'unicodehex.js'); // autoEdUnicodeHex converts hex encoded characters to unicode mw.loader.load(AutoEd_baseurl + 'templates.js'); // autoEdTemplates cleans up templates mw.loader.load(AutoEd_baseurl + 'extrabreaks.js'); // autoEdExtraBreaks removes extra BR tags mw.loader.load(AutoEd_baseurl + 'links.js'); // autoEdLinks cleans up common link errors

function autoEdFunctions { //Activates individual modules when "auto ed" tab is clicked var txt = document.editform.wpTextbox1; txt.value = autoEdUnicodify(txt.value); txt.value = autoEdISBN(txt.value); txt.value = autoEdWhitespace(txt.value); txt.value = autoEdUnicodeHex(txt.value); txt.value = autoEdWikilinks(txt.value); txt.value = autoEdHTMLtoWikitext(txt.value); txt.value = autoEdHeadlines(txt.value); txt.value = autoEdUnicodeControlChars(txt.value); txt.value = autoEdTemplates(txt.value); txt.value = autoEdExtraBreaks(txt.value); txt.value = autoEdLinks(txt.value); }

mw.loader.load(AutoEd_baseurl + 'core.js'); //Imports the "framework" script needed to make this function var capitalScript = '//en.wikipedia.org/w/index.php?title=' + 'User:WikiMasterGhibif/capitalize.js&action=raw&ctype=text/javascript'; mw.loader.load(capitalScript); // User:WikiMasterGhibif/capitalize.js importScript( 'User:Equazcion/ScriptInstaller.js' ); // Backlink: User:Equazcion/ScriptInstaller.js importScript('User:Thespaceface/ImperialFirst.js'); //Linkback: User:Thespaceface/ImperialFirst.js Added by Script installer importScript('User:PrimeHunter/My subpages.js'); //Linkback: User:PrimeHunter/My subpages.js Added by Script installer importScript('User:WikiMasterGhibif/editCounterNoAlert.js'); //Linkback: User:WikiMasterGhibif/editCounterNoAlert.js importScript('User:Kangaroopower/MRollback.js'); //Linkback: User:Kangaroopower/MRollback.js Added by Script installer importScript('User:Rezonansowy/FloatHead.js'); //Linkback: User:Rezonansowy/FloatHead.js Added by Script installer importScript('User:Ais523/adminrights.js'); //Linkback: User:Ais523/adminrights.js Added by Script installer importScript('User:TheDragonFire/scripts/steamroller.js'); //Linkback: User:TheDragonFire/scripts/steamroller.js Added by Script installer importScript('User:קיפודנחש/watchlistScout.js'); //Linkback: User:קיפודנחש/watchlistScout.js Added by Script installer