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

Content deleted Content added
No edit summary
No edit summary
Line 19:
{
case "Special":
console.log("special");
switch(mw.config.get("wgCanonicalSpecialPageName"))
{
Line 53:
case "File":
// Modify time in file history table.
console.log("file");
$("td > a").each(function()
{
console.log("table");
$(this).html($(this).html().replace(/()(\d\d:\d\d)(, \d{1,2} \w+ \d{4})/g, rxPartition));
});
Line 73 ⟶ 75:
$(".mw-changeslist-date").each(function()
{
$(this).text(rxReplace($(this).text()));
});
break;
Line 91 ⟶ 93:
$("#mw-revision-date").html(rxReplace($("#mw-revision-date").html()));
}
// Modify user signatures.
//$("#mw-content-text").html($("#mw-content-text").html().replace(/( )(\d\d:\d\d)(, \d{1,2} \w+ \d{4} )/g, rxPartition));
break;