Jump to content

User:MC10/OtherWiki.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.
/** 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;
    }
}