Jump to content

User:Argenti Aertheri/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.
/* 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]]