mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 07:58:00 +01:00
add :pagestyle command to allow for switching between alternate style sheets
This commit is contained in:
@@ -452,6 +452,19 @@ liberator.Buffer = function () //{{{
|
||||
"Show various page information",
|
||||
function () { liberator.buffer.showPageInfo(true); });
|
||||
|
||||
liberator.commands.add(["pagest[yle]"],
|
||||
"Select the author style sheet to apply",
|
||||
function (args)
|
||||
{
|
||||
if (liberator.options["usermode"])
|
||||
liberator.options["usermode"] = false;
|
||||
|
||||
stylesheetSwitchAll(window.content, args);
|
||||
},
|
||||
{
|
||||
completer: function (filter) { return liberator.completion.stylesheet(filter); }
|
||||
});
|
||||
|
||||
liberator.commands.add(["re[load]"],
|
||||
"Reload current page",
|
||||
function (args, special) { liberator.tabs.reload(getBrowser().mCurrentTab, special); });
|
||||
|
||||
Reference in New Issue
Block a user