User:Jdlrobson/global.js
Appearance
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
mw.trackSubscribe( 'resourceloader.exception', function ( topic, data ) {
alert(topic + JSON.stringify(data));
$( 'body' ).addClass( 'user-jdlrobson-error');
} );
// setup the global error handler
mw.trackSubscribe( 'global.error', function ( topic, error ) {
alert(JSON.stringify(error));alert(topic);
$( 'body' ).addClass( 'user-jdlrobson-error');
} );
mw.trackSubscribe('global.error', console.log.bind( console ))
mw.loader.load( 'https://en.wikipedia.org/w/index.php?title=User:Jdlrobson/readingList.js&action=raw&ctype=text/javascript' );