User:Leaderboard/Gadget-EnhancedPOTY.js/config.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:Leaderboard/Gadget-EnhancedPOTY.js/config. |
(function() {
var title = $.trim($('#mw-nstab').data('nstab'));
if ( title !== '' ) {
$('#ca-nstab-' + ( mw.config.get('wgCanonicalNamespace').toLowerCase() || 'main' )).find('a').text(title);
}
if ( $('#poty-gallery-heading').length ) {
$('#firstHeading').hide();
}
$('#com-my-poty-panel-container').show();
window.potyconfig = {
startDate: '2015-04-23T20:30:00Z',
pageNamespace: 2,
pageBase: 'Leaderboard/Photo Challenge',
votingPageRegExp: /^User:Leaderboard\/Photo Challenge\/\d{4}\/(R\d)\/v\/([^\/]{5,})$/,
galleryRegExp: /^User:Leaderboard\/Photo Challenge\/\d{4}\/R\d\/Gallery\/(.+)/
};
}());