mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 11:18:00 +01:00
Respect 'pageinfo' in <C-g>
This commit is contained in:
@@ -152,6 +152,9 @@ var Buffer = Module("buffer", {
|
|||||||
});
|
});
|
||||||
|
|
||||||
this.addPageInfoSection("m", "Meta Tags", function (verbose) {
|
this.addPageInfoSection("m", "Meta Tags", function (verbose) {
|
||||||
|
if (!verbose)
|
||||||
|
return [];
|
||||||
|
|
||||||
// get meta tag data, sort and put into pageMeta[]
|
// get meta tag data, sort and put into pageMeta[]
|
||||||
let metaNodes = buffer.focusedFrame.document.getElementsByTagName("meta");
|
let metaNodes = buffer.focusedFrame.document.getElementsByTagName("meta");
|
||||||
|
|
||||||
@@ -863,7 +866,7 @@ var Buffer = Module("buffer", {
|
|||||||
let file = content.location.pathname.split("/").pop() || _("buffer.noName");
|
let file = content.location.pathname.split("/").pop() || _("buffer.noName");
|
||||||
let title = content.document.title || _("buffer.noTitle");
|
let title = content.document.title || _("buffer.noTitle");
|
||||||
|
|
||||||
let info = template.map("gf",
|
let info = template.map(sections || options["pageinfo"],
|
||||||
function (opt) template.map(buffer.pageInfo[opt].action(), util.identity, ", "),
|
function (opt) template.map(buffer.pageInfo[opt].action(), util.identity, ", "),
|
||||||
", ");
|
", ");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user