User:MarkiPoli/common.js
Appearance
Code that you insert on this page could contain malicious content capable of compromising your account. If you import a script from another page with "importScript", "mw.loader.load", "iusc", or "lusc", take note that this causes you to dynamically load a remote script, which could be changed by others. Editors are responsible for all edits and actions they perform, including by scripts. User scripts are not centrally supported and may malfunction or become inoperable due to software changes. A guide to help you find broken scripts is available. If you are unsure whether code you are adding to this page is safe, you can ask at the appropriate village pump. This code will be executed when previewing this page. |
![]() | The accompanying .css page for this skin can be added at User:MarkiPoli/common.css. |
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' ]
}
);
});