User:Firefly/2021 Gadget-POTYEnhancements.js
Jump to navigation
Jump to search
Note: After saving, you have to bypass your browser's cache to see the changes. Internet Explorer: press Ctrl-F5, Mozilla: hold down Shift while clicking Reload (or press Ctrl-Shift-R), Opera/Konqueror: press F5, Safari: hold down Shift + Alt while clicking Reload, Chrome: hold down Shift while clicking Reload.
Documentation for this user script can be added at User:Firefly/2021 Gadget-POTYEnhancements. |
/**
* POTY Loader gadget
* Keeps the impact to other users working on Commons as small as possible.
*
*/
(function() {
if ( !( /^Commons(?:_talk)?:Picture_of_the_Year\/2020/.test( mw.config.get('wgPageName') ) ||
/^Template:POTY2020/.test( mw.config.get('wgPageName') ) ) ) return;
mw.loader.load('ext.gadget.POTYEnhancements.core');
}());