User:Jpgordon/common.js

var book_source_URL = "http://www.amazon.com/gp/s?search-alias=stripbooks&field-isbn=MAGICNUMBER"; importScript('User:Lunchboxhero/externISBN.js');

if (mw.config.get('wgCanonicalSpecialPageName') == 'Watchlist') importScript('user:js/watchlist.js');

importScript( 'User:Kaniivel/RefConsolidate_start.js' ); importScript( 'User:jpgordon/unblock-review.js' ); // Backlink: User:jpgordon/unblock-review.js mw.loader.load( '/w/index.php?title=User:Joeytje50/JWB.js/load.js&action=raw&ctype=text/javascript' ); // Backlink: User:Joeytje50/JWB.js/load.js

mw.loader.load( 'https://en.wikipedia.org/w/index.php?title=User:Volker_E._(WMF)/dark-mode.js&action=raw' ); // Backlink: User:Volker E. (WMF)/dark-mode.js, per VPT discussion

/** * Enables or disables the dark mode gadget. */

$.when($.ready, mw.loader.using(['mediawiki.util', 'mediawiki.api'])).then(function {   var inDarkMode = !!mw.user.options.get('gadget-dark-mode');

var linkText = inDarkMode ? 'Light mode' : 'Dark mode';

mw.util.addPortletLink('p-cactions', '#', linkText, 'pt-darkmode', inDarkMode ? 'Turn off dark mode' : 'Turn on dark mode', 'np');

$('#pt-darkmode').on('click', function(e) {       e.preventDefault;        mw.notify(inDarkMode ? 'Disabling dark mode ...' : 'Enabling dark mode ...');       new mw.Api.saveOption('gadget-dark-mode', inDarkMode ? '0' : '1').then(function { location.reload; });   }); });

//mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Ladsgroup/CheckUserHelper.js&action=raw&ctype=text/javascript'); importScript('User:Evad37/duplinks-alt.js'); // Backlink: User:Evad37/duplinks-alt.js