mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 14:27:58 +01:00
shorter date for ctrl-g
This commit is contained in:
@@ -622,11 +622,11 @@ vimperator.Buffer = function () //{{{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var lastMod = new Date(window.content.document.lastModified).toLocaleString();
|
var lastModVerbose = new Date(window.content.document.lastModified).toLocaleString();
|
||||||
|
var lastMod = new Date(window.content.document.lastModified).toLocaleFormat("%x %X");
|
||||||
// FIXME: probably unportable across differnet language versions
|
// FIXME: probably unportable across differnet language versions
|
||||||
if (lastMod == "Invalid Date")
|
if (lastModVerbose == "Invalid Date")
|
||||||
lastMod = null;
|
lastModVerbose = lastMod = null;
|
||||||
|
|
||||||
|
|
||||||
// Ctrl-g single line output
|
// Ctrl-g single line output
|
||||||
if (!verbose)
|
if (!verbose)
|
||||||
@@ -667,8 +667,8 @@ vimperator.Buffer = function () //{{{
|
|||||||
pageGeneral.push(["Mime-Type", content.document.contentType]);
|
pageGeneral.push(["Mime-Type", content.document.contentType]);
|
||||||
pageGeneral.push(["Encoding", content.document.characterSet]);
|
pageGeneral.push(["Encoding", content.document.characterSet]);
|
||||||
pageGeneral.push(["Compatibility", content.document.compatMode == "BackCompat" ? "Quirks Mode" : "Full/Almost Standards Mode"]);
|
pageGeneral.push(["Compatibility", content.document.compatMode == "BackCompat" ? "Quirks Mode" : "Full/Almost Standards Mode"]);
|
||||||
if (lastMod)
|
if (lastModVerbose)
|
||||||
pageGeneral.push(["Last Modified", lastMod]);
|
pageGeneral.push(["Last Modified", lastModVerbose]);
|
||||||
|
|
||||||
// get meta tag data, sort and put into pageMeta[]
|
// get meta tag data, sort and put into pageMeta[]
|
||||||
var metaNodes = window.content.document.getElementsByTagName("meta");
|
var metaNodes = window.content.document.getElementsByTagName("meta");
|
||||||
|
|||||||
Reference in New Issue
Block a user