User:Sam S/scripts/Standard pack.js
Appearance
Code that you insert on this page could contain malicious content capable of compromising your account. If you import a script from another page with "importScript", "mw.loader.load", "iusc", or "lusc", take note that this causes you to dynamically load a remote script, which could be changed by others. Editors are responsible for all edits and actions they perform, including by scripts. User scripts are not centrally supported and may malfunction or become inoperable due to software changes. A guide to help you find broken scripts is available. If you are unsure whether code you are adding to this page is safe, you can ask at the appropriate village pump. This code will be executed when previewing this page. |
Documentation for this user script can be added at User:Sam S/scripts/Standard pack. |
//scripts for maintaining an article. very easy to use and my favorite available
mw.loader.load('//wiki.riteme.site/w/index.php?title=User:Ohconfucius/script/MOSNUM_dates.js&action=raw&ctype=text/javascript');
mw.loader.load('//wiki.riteme.site/w/index.php?title=User:Ohconfucius/script/Common_Terms.js&action=raw&ctype=text/javascript');
mw.loader.load('//wiki.riteme.site/w/index.php?title=User:Ohconfucius/script/EngvarB.js&action=raw&ctype=text/javascript');
mw.loader.load('//wiki.riteme.site/w/index.php?title=User:BrandonXLF/HotDefaultSort.js&action=raw&ctype=text/javascript');
mw.loader.load('//wiki.riteme.site/w/index.php?title=User:Ohconfucius/script/formatgeneral.js&action=raw&ctype=text/javascript');
mw.loader.load('//wiki.riteme.site/w/index.php?title=User:Evad37/EditWarChecker.js&action=raw&ctype=text/javascript');
importScript( 'User:Evad37/rater.js' ); // Backlink: [[User:Evad37/rater.js]]
mw.loader.load('//wiki.riteme.site/w/index.php?title=User:Enterprisey/undo-last-edit.js&action=raw&ctype=text/javascript');
mw.loader.load('//wiki.riteme.site/w/index.php?title=User:Danski454/w2wFinder.js&action=raw&ctype=text/javascript');
mw.loader.load('//wiki.riteme.site/w/index.php?title=User:Epicgenius/sortcategories.js&action=raw&ctype=text/javascript');
/// begin customized autoed/complete.js
mw.loader.load('//wiki.riteme.site/w/index.php?title=Wikipedia:AutoEd/core.js&action=raw&ctype=text/javascript');
var AutoEd_baseurl = 'https://wiki.riteme.site/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 + 'tablestowikitext.js'); // autoEdTablestoWikitext() replaces HTML tables with wikitables
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
mw.loader.load(AutoEd_baseurl + 'fullwidth.js');
mw.loader.load('//wiki.riteme.site/w/index.php?title=User:Jerome_Frank_Disciple/curlyfixer.js&action=raw&ctype=text/javascript');
mw.loader.load('//wiki.riteme.site/w/index.php?title=User:Ohconfucius/dashes.js&action=raw&ctype=text/javascript');
function autoEdFunctions() { //Activates individual modules when "auto ed" tab is clicked
var $textbox = $( '#wpTextbox1' );
var txt = $textbox.textSelection('getContents');
txt = autoEdUnicodify(txt);
txt = autoEdISBN(txt);
txt = autoEdWhitespace(txt);
txt = autoEdUnicodeHex(txt);
txt = autoEdWikilinks(txt);
txt = autoEdHTMLtoWikitext(txt);
txt = autoEdHeadlines(txt);
txt = autoEdUnicodeControlChars(txt);
txt = autoEdTemplates(txt);
txt = autoEdTablestoWikitext(txt);
txt = autoEdExtraBreaks(txt);
txt = autoEdLinks(txt);
txt = autoEdDashes(txt);
txt = autoEdFullwidth(txt);
txt = autoEdCurlyFixer(txt);
if(txt===$textbox.textSelection('getContents')){ autoEdTag = ""; mw.notify("No changes required!"); }
else $textbox.textSelection('setContents', txt);
}
autoEdMinor = false;
autoEdClick = false;
autoEdTag = "cleaned up using [[WP:AutoEd|AutoEd]]";
autoEdLinkHover = "Run AutoEd now, if you so wish";
/// end autoed