User:Guywan/Scripts/12HourFormat.js: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 31:
{
var time = partition($(this).text());
console.log(time[0]);
console.log(time[1]);
console.log(time[2]);
$(this).text(time[0] + time[1] + time[2]);
Line 50 ⟶ 46:
$(this).children().first().text(text[0] + text[1] + text[2]);
});
}
// Modify time when viewing user log info.
else if(mw.config.get("wgCanonicalNamespace") == "Log")
{
$("ul").first().children().each(function()
{
var time = partition($(this).text());
$(this).text(time[0] + time[1] + time[2]);
});
}