User:MarkiPoli/common.js

Source: Wikipedia, the free encyclopedia.
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
window.LocalComments = {
    dateDifference: false,
    dateFormat: 'dmy',
    dayOfWeek: false,
    dropDays: 0,
    dropMonths: 0,
    timeFirst: false,
    twentyFourHours: false,
};

importScript('User:Gary/comments in local time.js'); // [[User:Gary/comments in local time.js]]
importScript('User:Frietjes/findargdups.js'); // [[User:Frietjes/findargdups]]



mw.loader.using(['jquery'], function () {
    $(document).ready(function() {
        $('table.wikitable.plainrowheaders.wikiepisodetable tbody tr.expand-child td.description').each(function() {
            var content = $(this).html();
            var newDiv = $('<div>', {
                style: 'max-width:90vw',
                html: content
            });
            $(this).empty().append(newDiv);
            $('.mw-changeslist-date').css('color', 'red');
        });
    });
});

// Gives some useful links on user, user talk, and user contribution pages
// by [[m:user:Hoo man]] <http://meta.wikimedia.org/wiki/User:Hoo_man/Scripts/Useful_links>
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Hoo_man/useful_links.js&action=raw&ctype=text/javascript');
if(typeof(usefulLinksConfig) == 'undefined') usefulLinksConfig = {};
usefulLinksConfig.toolLinkMethod = 'p-cactions';
 
// Useful script to tell if a user is currently blocked, by striking out the username
mw.loader.load('//ru.wikipedia.org/w/index.php?title=MediaWiki:Gadget-markblocked.js&action=raw&ctype=text/javascript');
 
// A nice UTC clock
mw.loader.load('//mediawiki.org/w/index.php?title=MediaWiki:Gadget-UTCLiveClock.js&action=raw&ctype=text/javascript');


// [[File:userinfo.js]]
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:PleaseStand/userinfo.js&action=raw&ctype=text/javascript');
// nowiki button for the 2017WTE
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Matma_Rex/nwe-nowiki.js&action=raw&ctype=text/javascript');

//David L said not to use this //
mw.loader.using( [ 'ext.discussionTools.ReplyWidgetVisual' ] ).then( function() {
	ve.init.mw.targetFactory.registry.discussionTools.static.toolbarGroups.push(
		{
			name: 'transclusion',
			include: [ 'transclusion' ]
		}
	);
});