User:MC10/OtherWiki.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:MC10/OtherWiki. |
/** Add this to monobook.js as following:
// [[User:MC10/OtherWiki.js]]
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:MC10/OtherWiki.js'
+ '&action=raw&ctype=text/javascript');
*/
/* Unnamed scripts */
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:MC10/Purge.js'
+ '&action=raw&ctype=text/javascript');
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:MC10/Time.js'
+ '&action=raw&ctype=text/javascript');
/* Named scripts */
// [[User:Lupin/popups.js]]
mw.loader.load('//en.wikipedia.org/w/index.php?title=MediaWiki:Gadget-popups.js'
+ '&action=raw&ctype=text/javascript');
importStylesheetURI('//en.wikipedia.org/w/index.php?title=MediaWiki:Gadget-navpop.css'
+ '&action=raw&ctype=text/css');
var popupFixRedirs = true;
var popupRedlinkRemoval = true;
var popupFixDabs = true;
var popupStructure = 'menus';
var popupAdminLinks = true;
var popupRevertSummary = 'Revert to revision %s using [[wikipedia:Wikipedia:Tools/Navigation popups|popups]]';
var popupRevertToPreviousSummary = 'Revert to the revision prior to revision %s using [[wikipedia:Wikipedia:Tools/Navigation popups|popups]]';
var popupExtendedRevertSummary = 'Revert to revision dated %s by %s, oldid %s using [[wikipedia:Wikipedia:Tools/Navigation popups|popups]]';
var popupQueriedRevertSummary = 'Revert to revision $1 dated $2 by $3 using [[wikipedia:Wikipedia:Tools/Navigation popups|popups]]';
var popupQueriedRevertToPreviousSummary = 'Revert to the revision prior to revision $1 dated $2 by $3 using [[wikipedia:Wikipedia:Tools/Navigation popups|popups]]';
var popupFixRedirsSummary = 'Redirect bypass from [[%s]] to [[%s]] using [[wikipedia:Wikipedia:Tools/Navigation popups|popups]]';
var popupFixDabsSummary = 'Disambiguate [[%s]] to [[%s]] using [[wikipedia:Wikipedia:Tools/Navigation popups|popups]]';
var popupRmDabLinkSummary = 'Remove link to dab page [[%s]] using [[wikipedia:Wikipedia:Tools/Navigation popups|popups]]';
var popupRedlinkSummary = 'Removing link to empty page [[%s]] using [[wikipedia:Wikipedia:Tools/Navigation popups|popups]]';
/* If needed, use these:
var popupRevertSummary = 'Revert to revision %s using [[w:Wikipedia:Tools/Navigation popups|popups]]';
var popupRevertToPreviousSummary = 'Revert to the revision prior to revision %s using [[w:Wikipedia:Tools/Navigation popups|popups]]';
var popupExtendedRevertSummary = 'Revert to revision dated %s by %s, oldid %s using [[w:Wikipedia:Tools/Navigation popups|popups]]';
var popupQueriedRevertSummary = 'Revert to revision $1 dated $2 by $3 using [[w:Wikipedia:Tools/Navigation popups|popups]]';
var popupQueriedRevertToPreviousSummary = 'Revert to the revision prior to revision $1 dated $2 by $3 using [[w:Wikipedia:Tools/Navigation popups|popups]]';
var popupFixRedirsSummary = 'Redirect bypass from [[%s]] to [[%s]] using [[w:Wikipedia:Tools/Navigation popups|popups]]';
var popupFixDabsSummary = 'Disambiguate [[%s]] to [[%s]] using [[w:Wikipedia:Tools/Navigation popups|popups]]';
var popupRmDabLinkSummary = 'Remove link to dab page [[%s]] using [[w:Wikipedia:Tools/Navigation popups|popups]]';
var popupRedlinkSummary = 'Removing link to empty page [[%s]] using [[w:Wikipedia:Tools/Navigation popups|popups]]';
*/
// [[User:Js/ajaxPreview]]
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Js/ajaxPreview.js'
+ '&action=raw&ctype=text/javascript');
var ajaxPreviewPos = 'bottom';
var ajaxPreviewScrollTop = true;
var ajaxPreviewExec = function(previewArea) { // code to execute after each preview update
if (window.setupTooltips) {
window.setupTooltips(previewArea);
previewArea.ranSetupTooltipsAlready = false;
}
}