User:Argenti Aertheri/common.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. |
The accompanying .css page for this skin is at User:Argenti Aertheri/common.css. |
/* AUTOED USER MODULES */
importScript('User:Awesome Aasim/savedraft.js');
importScript('Wikipedia:AutoEd/core.js');
autoEdMinor = false;
autoEdTag = "Cleaned up using [[WP:AutoEd|AutoEd]]";
autoEdLinkName = "Run AutoEd";
//autoEdLinkLocation = "p-tb";
//Import individual modules for use
//importScript('User:Argenti Aertheri/AutoEdSupplement.js');
importScript('Wikipedia:AutoEd/wikilinks.js');
importScript('Wikipedia:AutoEd/headlines.js');
importScript('Wikipedia:AutoEd/htmltowikitext.js');
importScript('Wikipedia:AutoEd/isbn.js');
importScript('Wikipedia:AutoEd/links.js');
importScript('Wikipedia:AutoEd/templates.js');
importScript('Wikipedia:AutoEd/whitespace.js');
importScript('User:Ohconfucius/dashes.js');
function autoEdFunctions() { //Activates individual modules when "auto ed" tab is clicked
var txt = document.editform.wpTextbox1;
// txt.value = autoEdCurlyRepair(txt);
txt.value = autoEdWikilinks(txt.value);
txt.value = autoEdHeadlines(txt.value);
txt.value = autoEdHTMLtoWikitext(txt.value);
txt.value = autoEdLinks(txt.value);
txt.value = autoEdISBN(txt.value);
txt.value = autoEdTemplates(txt.value);
txt.value = autoEdWhitespace(txt.value);
txt.value = autoEdDashes(txt.value);
};
/* CUSTOM EDIT SUMMARIES */
var customGeneralSummaries = [
"Fixing citation errors",
"Copy editing",
"Minor copy edit",
"Formatting fix",
"Typo fix",
"Fixed caps",
"Citation tidying",
"General tidying",
" per MOS"
];
importScript( 'User:Enterprisey/CustomSummaryPresets.js' );
/* AUTO FORMAT
mw.loader.load(
'//de.wikipedia.org/w/index.php?title=Benutzer:TMg/autoFormatter.js&action=raw&ctype=text/javascript'
);
var autoFormatShortYearRanges = true;
var autoFormatReplacements = [
['Ph.D.', 'PhD'],
[/ +<ref\b/g, '<ref']
];
*/
/* Unclutter
window.kephirUnclutter = {
enableOnPageLoad : false,
wrapDiscussions : true,
collapseDiscussionsByDefault: true,
signaturesProcess : false
};
importScript('User:Kephir/gadgets/unclutter.js');*/
/* Reference taming */
importScript('User:Headbomb/unreliable.js');
importScript('User:Nardog/RefRenamer.js');
importScript('User:Argenti_Aertheri/RefConsolidate_start.js');
/* Clarify user info */
window.SHOW_USER_GENDER = {
male: ' (he)',
female: ' (she)',
unknown: ' (they)'
};
importScript('User:BrandonXLF/ShowUserGender.js');
importScript('User:Opencooper/IPtoEmoji.js');
/* Alter my user space */
if (
mw.config.get('wgNamespaceNumber') == 3
&& mw.config.get('wgPageName').includes("Argenti" )
) {
importScript('User:Evad37/OneClickArchiver.js');
};
// random
importScript('User:Novem Linguae/Scripts/GANReviewTool.js');
importScript('User:Mesidast/Curly Quotes.js');
importScript('User:Nardog/ExpandContractions.js');
//importScript('User:Argenti Aertheri/Vital Article.js');
importScript('User:Argenti Aertheri/jQuery tweaks.js');
// Add custom Character Inserter entries
window.charinsertCustom = {
"Templates" :
'Mention: {\{u|+}} {\{ping|+}} ' +
'Inline: {\{Citation.needed}} {\{Clarify}} {\{Vague}} {\{Who2}} {\{When}} {\{Which}} {\{How}} ' +
'{\{Who}} {\{By.whom}} {\{Relevance.inline}} {\{Quote.without.source}} {\{Full.citation.needed}} ' +
'Other: {\{clear}} {\{Inflation|USD|value|start_year}} {\{convert|2|km|mi}} {\{Facepalm.silhouette}} ' +
'{\{Self-trout}}'
};
importScript('User:Awesome Aasim/xfdvote.js'); // Backlink: [[User:Awesome Aasim/xfdvote.js]]
importScript('User:Anomie/linkclassifier.js'); // Linkback: [[User:Anomie/linkclassifier.js]]
importStylesheet('User:Anomie/linkclassifier.css'); // Linkback: [[User:Anomie/linkclassifier.css]]