Jump to content

User:R'n'B/monobook.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.
//importScript('User:Barticus88/WhatLinksHere.js');

// [[User:Lupin/popups.js]]

popupShortcutKeys = true; // optional: enable keyboard shortcuts
popupAdminLinks = true;   // optional: enable admin links
popupFixDabs = true;
popupFixRedirs = true;
popupOnEditSelection = false;
popupRedirAutoClick = 'wpDiff';
imagePopupsForImages = false;
popupMaxWidth = 512;
popupDabRegexp = '(([{][{]\\s*(([-\\w\\s]*disamb[-\\w\\s]*)'
                            + '|(bio|fish-|geo|math)?dab'
                            + '|(callsign|(geo-?)|hn|hospital|number|pow|(road?)|school)dis'
                            + '|hndis-cleanup|na broadcast list'
                            + ')(\\s*\\|[^}]*)?\\s*[}][}]'
                + ')|(is a .*disambiguation.*page))';

importScript('User:Lupin/recent2.js');

// importScript('User:Drilnoth/codefixer.js'); //See [[User:Drilnoth/codefixer.js/doc]] for details

// importScript('User:Magnus Manske/linkfixr.js');

if ( mw.config.get('wgPageName') === "Special:Watchlist" ) {
   mw.util.addPortletLink( 'p-tb', '#', 'Expand all changes', 'wl-expand-all' );
   $('#wl-expand-all').click( function (e) {
       e.preventDefault();
       $('.mw-collapsible-toggle').click();
   });
}