User:SUL/monobook.js

importScriptURI('http://en.wikipedia.org/w/index.php?title=Wikipedia:AutoEd/core.js&action=raw&ctype=text/javascript'); //Imports the "framework" script needed to make this function //Import individual modules for use //mw.loader.load('//en.wikipedia.org/w/index.php?title=Wikipedia:AutoEd/unicodify.js&action=raw&ctype=text/javascript'); // autoEdUnicodify converts HTML entities to WikiText mw.loader.load('//en.wikipedia.org/w/index.php?title=Wikipedia:AutoEd/wikilinks.js&action=raw&ctype=text/javascript'); // autoEdWikilinks simplifies and shortens wikilinks where appropriate mw.loader.load('//en.wikipedia.org/w/index.php?title=Wikipedia:AutoEd/htmltowikitext.js&action=raw&ctype=text/javascript'); // autoEdHTMLtoWikitext converts HTML to wikitext mw.loader.load('//en.wikipedia.org/w/index.php?title=Wikipedia:AutoEd/headlines.js&action=raw&ctype=text/javascript'); // autoEdHeadlines fixes common headline errors and renames some headers mw.loader.load('//en.wikipedia.org/w/index.php?title=Wikipedia:AutoEd/unicodecontrolchars.js&action=raw&ctype=text/javascript'); // autoEdUnicodeControlChars converts HTML to wikitext mw.loader.load('//en.wikipedia.org/w/index.php?title=Wikipedia:AutoEd/templates.js&action=raw&ctype=text/javascript'); // autoEdTemplates cleans up templates mw.loader.load('//en.wikipedia.org/w/index.php?title=Wikipedia:AutoEd/extrabreaks.js&action=raw&ctype=text/javascript'); // autoEdExtraBreaks removes extra BR tags mw.loader.load('//en.wikipedia.org/w/index.php?title=Wikipedia:AutoEd/links.js&action=raw&ctype=text/javascript'); // 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 = 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); }