User:Zziccardi/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:Zziccardi/common.css. |
importScript("User:Cameltrader/Advisor.js"); // [[User:Cameltrader/Advisor]]
importScript('User:Lenore/autolink.js'); // [[User:Lenore/autolink]]
importScript("User:Ohconfucius/script/MOSNUM dates.js"); // [[User:Ohconfucius/script/MOSNUM dates]]
importScript("User:PleaseStand/userinfo.js"); // [[User:PleaseStand/User info]]
importScript("User:Theopolisme/Scripts/ajaxWatchlist.js"); // [[User:Theopolisme/Scripts/ajaxWatchlist]]
importScript("User:Ucucha/duplinks.js"); // [[User:Ucucha/duplinks]]
importScript("Wikipedia:AutoEd/complete.js"); // [[Wikipedia:AutoEd]]
mw.loader.load("https://meta.wikimedia.org/w/index.php?title=User:Zhaofeng_Li/Reflinks.js&action=raw&ctype=text/javascript"); // [[User:Zhaofeng Li/reFill]]
mw.loader.load("//meta.wikimedia.org/w/index.php?title=User:Hedonil/XTools/XTools.js&action=raw&ctype=text/javascript"); // [[m:User:Hedonil/XTools]]
mw.loader.load("//en.wikipedia.org/w/index.php?title=User:PleaseStand/userScriptSandbox.js&action=raw&ctype=text/javascript"); // [[Wikipedia:User script sandbox]]
// [[User:Js/ajaxPreview]]
// Add classes to the preview and diff buttons created by ajaxPreview.js so that
// their styling matches the surrounding buttons.
mw.loader
.getScript("//en.wikipedia.org/w/index.php?title=User:Js/ajaxPreview.js&action=raw&ctype=text/javascript")
.then(function () {
["wpPreviewLive", "wpDiffLive"].forEach(function (id) {
document.getElementById(id).classList.add("oo-ui-inputWidget-input", "oo-ui-buttonElement-button");
});
});
// ajaxPreview customization is below.
var ajaxPreviewPos = "bottom"; // This places the ajaxPreview buttons on the bottom and replaces the default buttons.
var ajaxPreviewButton = "Show preview"; // This alters the "Preview" button text.
var ajaxDiffButton = "Show changes"; // This alters the "Changes" button text.
var ajaxPreviewScrollTop = true; // This scrolls to the top of the page every time the "Preview" button or "Changes" button is clicked.
// ajaxWatchlist customization is below.
window.watchlistUpdateFrequency = 60000;
// AutoEd customization is below.
autoEdMinor = true;
autoEdClick = true;
autoEdTag = "Cleaned up using [[WP:AutoEd|AutoEd]]";
autoEdLinkHover = "Run AutoEd";
autoEdLinkName = "AutoEd";
autoEdLinkLocation = "p-tb";
// autolink customization is below.
var autolinkParseLink = false;