Jump to content

User:D.18th/common.js

From Wikipedia, the free encyclopedia
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
// Begin [[Wikipedia:AutoEd/Customization]] / [[Wikipedia:AutoEd/complete.js]]
importScript('Wikipedia:AutoEd/core.js'); // Backlink: [[Wikipedia:AutoEd/core.js]]
autoEdTag = "Cleaned up using [[WP:AutoEd|AutoEd]]"; //Supplies link to CHECKWIKI in summary
autoEdLinkLocation = "p-cactions";
var AutoEd_baseurl = 'https://en.wikipedia.org/enwiki/w/index.php?action=raw&ctype=text/javascript&title=Wikipedia:AutoEd/';

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');
importScript('User:Jerome Frank Disciple/curlyfixer.js'); // Backlink: [[User:Jerome Frank Disciple/curlyfixer.js]]
importScript('User:Ohconfucius/dashes.js'); // Backlink: [[User:Ohconfucius/dashes.js]]
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);
}
// End [[Wikipedia:AutoEd/Customization]] / [[Wikipedia:AutoEd/complete.js]]
importScript('User:N8wilson/AQFetcher.js'); // Backlink: [[User:N8wilson/AQFetcher.js]]
importStylesheet('User:N8wilson/AQFetcher.css'); // Linkback: [[User:N8wilson/AQFetcher-Icons.css]]
importScript('User:Lenore/autolink.js'); // Backlink: [[User:Lenore/autolink.js]]
importScript('User:Sunrise/Scripts/AjaxInlineDiffs.js'); // Backlink: [[User:Sunrise/Scripts/AjaxInlineDiffs.js]]
importScript('User:ערן/autocomplete.js'); // Backlink: [[User:ערן/autocomplete.js]]
importScript('User:Qwertyytrewqqwerty/DisamAssist.js'); // Backlink: [[User:Qwertyytrewqqwerty/DisamAssist.js]]
importScript('User:DannyS712/SectionRemover.js'); // Backlink: [[User:DannyS712/SectionRemover.js]]
importScript('User:Ohconfucius/script/MOSNUM_dates.js'); // Backlink: [[User:Ohconfucius/script/MOSNUM_dates.js]]
importScript('User:Ohconfucius/script/Sources.js'); // Backlink: [[User:Ohconfucius/script/Sources.js]]
importScript('User:DannyS712/De-Stub.js'); // Backlink: [[User:DannyS712/De-Stub.js]]
importScript('User:Frietjes/findargdups.js'); // Backlink: [[User:Frietjes/findargdups.js]]
importScript('User:Epicgenius/sortcategories.js'); // Backlink: [[User:Epicgenius/sortcategories.js]]
importScript('User:PrimeHunter/My_subpages.js'); // Backlink: [[User:PrimeHunter/My_subpages.js]]
importScript('User:Þjarkur/Highlight_recently_added_text.js'); // Backlink: [[User:Þjarkur/Highlight_recently_added_text.js]]
importScript('User:Taavi/Aligner.js'); // Backlink: [[User:Taavi/Aligner.js]]
importScript('User:Ohconfucius/script/Common Terms.js'); // Backlink: [[User:Ohconfucius/script/Common Terms.js]]
importScript('User:The_Evil_IP_address/hdedit.js'); // Backlink: [[User:The_Evil_IP_address/hdedit.js]]
importScript('User:Anomie/linkclassifier.js'); // Backlink: [[User:Anomie/linkclassifier.js]]
importScript('User:Evad37/duplinks-alt.js'); // Backlink: [[User:Evad37/duplinks-alt.js]]
importScript('User:Rublov/refspace.js'); // Backlink: [[User:Rublov/refspace.js]]
importScript('User:Ohconfucius/script/flagcruft.js'); // Backlink: [[User:Ohconfucius/script/flagcruft.js]]
importScript('User:RedWarn/.js'); // Backlink: [[User:RedWarn/.js]]
importScript('User:Erutuon/scripts/footnoteCleanup.js'); // Backlink: [[User:Erutuon/scripts/footnoteCleanup.js]]
importScript('User:Novem Linguae/Scripts/ReviewStatus.js'); // Backlink: [[User:Novem Linguae/Scripts/ReviewStatus.js]]
importScript('User:Danski454/wikidata Qnum.js'); // Backlink: [[User:Danski454/wikidata Qnum.js]]
importScript('User:SuperHamster/CiteUnseen.js'); // Backlink: [[User:SuperHamster/CiteUnseen.js]]
importScript('User:Headbomb/unreliable.js'); // Backlink: [[User:Headbomb/unreliable.js]]
importScript('User:Pythoncoder/Scripts/voteSymbols.js'); // Backlink: [[User:Pythoncoder/Scripts/voteSymbols.js]]
importScript('User:Evad37/EditWarChecker.js'); // Backlink: [[User:Evad37/EditWarChecker.js]]
importScript('User:קיפודנחש/wathlistWatcher.js'); // Backlink: [[User:קיפודנחש/wathlistWatcher.js]]
importScript('User:Mesidast/Tidy_citations.js'); // Backlink: [[User:Mesidast/Tidy_citations.js]]
importScript('User:Dr_pda/editrefs.js'); // Backlink: [[User:Dr_pda/editrefs.js]]
importScript('User:Alexis Jazz/LuckyRename.js'); // Backlink: [[User:Alexis Jazz/LuckyRename.js]]
importScript('User:JPxG/TrackSum.js'); // Backlink: [[User:JPxG/TrackSum.js]]
importScript('User:AndyZ/peerreviewer.js'); // Backlink: [[User:AndyZ/peerreviewer.js]]
importScript('User:The Earwig/copyvios.js'); // Backlink: [[User:The Earwig/copyvios.js]]
importScript('User:Enterprisey/cv-revdel.js'); // Backlink: [[User:Enterprisey/cv-revdel.js]]
importScript('User:MPGuy2824/MoveToDraft.js'); // Backlink: [[User:MPGuy2824/MoveToDraft.js]]
importScript('User:DannyS712/Draft no cat.js'); // Backlink: [[User:DannyS712/Draft no cat.js]]
importScript('User:DannyS712/Draft re cat.js'); // Backlink: [[User:DannyS712/Draft re cat.js]]
importScript('User:Enterprisey/parent-cats.js'); // Backlink: [[User:Enterprisey/parent-cats.js]]
importScript('User:Jeeputer/highlightPiped.js'); // Backlink: [[User:Jeeputer/highlightPiped.js]]
importScript('User:Hilst/Scripts/sectionLinks.js'); // Backlink: [[User:Hilst/Scripts/sectionLinks.js]]
importScript('User:Nardog/RefRenamer.js'); // Backlink: [[User:Nardog/RefRenamer.js]]
importScript('User:Evad37/rater.js'); // Backlink: [[User:Evad37/rater.js]]
importScript('User:Ohconfucius/script/EngvarB.js'); // Backlink: [[User:Ohconfucius/script/EngvarB.js]]
importScript('User:SD0001/PR-helper.js'); // Backlink: [[User:SD0001/PR-helper.js]]
importScript('User:Writ Keeper/Scripts/peerReviewCloser.js'); // Backlink: [[User:Writ Keeper/Scripts/peerReviewCloser.js]]
importScript('User:Guycn2/UserInfoPopup.js'); // Backlink: [[User:Guycn2/UserInfoPopup.js]]
importScript('User:TheJJJunk/ARA.js'); // Backlink: [[User:TheJJJunk/ARA.js]]
importScript('User:Guarapiranga/WhatRedirectsHere.js'); // Backlink: [[User:Guarapiranga/WhatRedirectsHere.js]]
importScript('User:Qwerfjkl/scripts/editRedirect.js'); // Backlink: [[User:Qwerfjkl/scripts/editRedirect.js]]
importScript('User:Awesome_Aasim/redirectcreator.js'); // Backlink: [[User:Awesome_Aasim/redirectcreator.js]]
importScript('User:Eejit43/scripts/redirect-helper.js'); // Backlink: [[User:Eejit43/scripts/redirect-helper.js]]
importScript('User:SD0001/GAN-helper.js'); // Backlink: [[User:SD0001/GAN-helper.js]]
importScript('User:SD0001/GAR-helper.js'); // Backlink: [[User:SD0001/GAR-helper.js]]
importScript('User:SD0001/FAC-helper.js'); // Backlink: [[User:SD0001/FAC-helper.js]]
importScript('User:SD0001/FAR-helper.js'); // Backlink: [[User:SD0001/FAR-helper.js]]
importScript('User:Bradv/Scripts/ExpandDiffs.js'); // Backlink: [[User:Bradv/Scripts/ExpandDiffs.js]]
importScript('User:PiRSquared17/rcexpander.js'); // Backlink: [[User:PiRSquared17/rcexpander.js]]
importScript('User:Awesome_Aasim/rcpatrol.js'); // Backlink: [[User:Awesome_Aasim/rcpatrol.js]]
importScript('User:Þjarkur/NeverUseMobileVersion.js'); // Backlink: [[User:Þjarkur/NeverUseMobileVersion.js]]
importScript('User:Paper9oll/FormatterTagger.js'); // Backlink: [[User:Paper9oll/FormatterTagger.js]]
importScript('User:BilledMammal/MovePlus.js'); // Backlink: [[User:BilledMammal/MovePlus.js]]
importScript('User:Awesome_Aasim/xfdvote.js'); // Backlink: [[User:Awesome_Aasim/xfdvote.js]]
importScript('User:Ais523/stubtagtab2.js'); // Backlink: [[User:Ais523/stubtagtab2.js]]
importScript('User:BrandonXLF/ParameterSpacing.js'); // Backlink: [[User:BrandonXLF/ParameterSpacing.js]]
importScript('User:Nigos/scripts/Sandbox2.js'); // Backlink: [[User:Nigos/scripts/Sandbox2.js]]
importScript('User:Opencooper/lastEdit.js'); // Backlink: [[User:Opencooper/lastEdit.js]]
importScript('User:BrandonXLF/AddCopied.js'); // Backlink: [[User:BrandonXLF/AddCopied.js]]
importScript('User:ZKang123/TitleCaseConverter.js'); // Backlink: [[User:ZKang123/TitleCaseConverter.js]]
importScript('User:DaxServer/DiscussionCloser.js'); // Backlink: [[User:DaxServer/DiscussionCloser.js]]
importScript('User:Danski454/stubsearch.js'); // Backlink: [[User:Danski454/stubsearch.js]]
importScript('User:Novem_Linguae/Scripts/DraftCleaner.js'); // Backlink: [[User:Novem_Linguae/Scripts/DraftCleaner.js]]
importScript('User:Novem Linguae/Scripts/MarkFreeUseRationale.js'); // Backlink: [[User:Novem Linguae/Scripts/MarkFreeUseRationale.js]]
importScript('User:Nihiltres/assesslinks.js'); // Backlink: [[User:Nihiltres/assesslinks.js]]
importScript('User:Eejit43/scripts/afcrc-helper.js'); // Backlink: [[User:Eejit43/scripts/afcrc-helper.js]]
importScript('User:Equazcion/SidebarHistoryTools.js'); // Backlink: [[User:Equazcion/SidebarHistoryTools.js]]
importScript('User:Novem_Linguae/Scripts/CiteHighlighter.js'); // Backlink: [[User:Novem_Linguae/Scripts/CiteHighlighter.js]]
importScript('User:Enterprisey/section-redir-note.js'); // Backlink: [[User:Enterprisey/section-redir-note.js]]
importScript('User:Alex 21/script-functions.js'); // Backlink: [[User:Alex 21/script-functions.js]]
setTimeout(function() {
	importScript('User:Alex 21/{SCRIPT}.js');
},1000);
importScript('User:Alex 21/script-episodetable.js'); // Backlink: [[User:Alex 21/script-episodetable.js]]
importScript('User:Alex 21/script-formatdates.js'); // Backlink: [[User:Alex 21/script-formatdates.js]]
importScript('User:Alex 21/script-linecolour.js'); // Backlink: [[User:Alex 21/script-linecolour.js]]
importScript('User:Alex 21/script-plotlength.js'); // Backlink: [[User:Alex 21/script-plotlength.js]]
importScript('User:Alex 21/script-seasonlist.js'); // Backlink: [[User:Alex 21/script-seasonlist.js]]
importScript('User:Alex 21/script-seriesoverview.js'); // Backlink: [[User:Alex 21/script-seriesoverview.js]]
importScript('User:Alex 21/script-tablecolour.js'); // Backlink: [[User:Alex 21/script-tablecolour.js]]
importScript('User:Alex 21/script-tvepisoderatings.js'); // Backlink: [[User:Alex 21/script-tvepisoderatings.js]]
importScript('User:Alex 21/script-updateepisodes.js'); // Backlink: [[User:Alex 21/script-updateepisodes.js]]
importScript('User:Alex 21/script-categorypagelinks.js'); // Backlink: [[User:Alex 21/script-categorypagelinks.js]]
importScript('User:Alex 21/script-imageres.js'); // Backlink: [[User:Alex 21/script-imageres.js]]
importScript('User:Alex 21/script-references.js'); // Backlink: [[User:Alex 21/script-references.js]]
importScript('User:Alex 21/script-redlinks.js'); // Backlink: [[User:Alex 21/script-redlinks.js]]
importScript('User:Music1201/QuickLinks.js'); // Backlink: [[User:Music1201/QuickLinks.js]]
importScript('User:Yahya/scripts/SNA.js'); // Backlink: [[User:Yahya/scripts/SNA.js]]
importScript('User:Nardog/IPAInput.js'); // Backlink: [[User:Nardog/IPAInput.js]]
importScript('User:Shubinator/DYKcheck.js'); // Backlink: [[User:Shubinator/DYKcheck.js]]
importScript('User:Jackmcbarn/editProtectedHelper.js'); // Backlink: [[User:Jackmcbarn/editProtectedHelper.js]]
window.editProtectedHelperReloadAfter = true;
importScript('User:Eejit43/scripts/rmtr-helper.js'); // Backlink: [[User:Eejit43/scripts/rmtr-helper.js]]