User:Vesihiisi/common.js

console.log("mjau!")

$('body').css('font-size', '1.5em'); $('body').css('background-color', '#ffedff'); $('#bodyContent').css('background-color', '#e8f1ff');

mw.notify(mw.config.get('wgUserGroups')); $('#bodyContent').prepend(new Date(mw.now));

// Example 4: User script to calculate and display estimated reading time of an // article var words = $('#bodyContent').text.split(' ').length, avgSpeed = Math.round(words / 250); $('#firstHeading').append(" (" + avgSpeed + " min" + " read) ");