MediaWiki:Common.js: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 1: Line 1:
/* Any JavaScript here will be loaded for all users on every page load. */
/* Any JavaScript here will be loaded for all users on every page load. */


setTimeout( 'console.log("MediaWiki");', 3000);
setTimeout( alterShowEntries, 5000);


$(window).on( 'load', function() {
function alterShowEntries() {
     var opt = new Option("all", "1500");
     var opt = new Option("all", "1500");
     $(opt).html("all");
     $(opt).html("all");
     var t = $('label select[name="DataTables_Table_0_length"]').append(opt);
     var t = $('label select[name="DataTables_Table_0_length"]').append(opt);
     console.log(t);
     console.log(t);
} );
}