mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 16:07:59 +01:00
allow hints to function on pages where authorStyleDisabled has been set via means other than 'usermode'
This commit is contained in:
@@ -764,7 +764,9 @@ function Commands() //{{{
|
|||||||
else
|
else
|
||||||
func = "completion." + completeOptionMap[completeOpt];
|
func = "completion." + completeOptionMap[completeOpt];
|
||||||
|
|
||||||
completeFunc = eval(func);
|
//completeFunc = eval(func);
|
||||||
|
completeFunc = func;
|
||||||
|
liberator.log(func)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!commands.addUserCommand(
|
if (!commands.addUserCommand(
|
||||||
@@ -775,7 +777,9 @@ function Commands() //{{{
|
|||||||
argCount: nargsOpt,
|
argCount: nargsOpt,
|
||||||
bang: bangOpt,
|
bang: bangOpt,
|
||||||
count: countOpt,
|
count: countOpt,
|
||||||
completer: completeFunc,
|
// TODO: handle missing function
|
||||||
|
//completer: completeFunc,
|
||||||
|
completer: function (context, args) eval(completeFunc + "(context, args)"),
|
||||||
replacementText: args.literalArg
|
replacementText: args.literalArg
|
||||||
},
|
},
|
||||||
args.bang)
|
args.bang)
|
||||||
|
|||||||
@@ -250,7 +250,11 @@ function Hints() //{{{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (options.usermode)
|
// TODO: is it better to set up an observer for this property and set
|
||||||
|
// 'usermode' appropriately? We're generally not very well integrated
|
||||||
|
// into FF so having menu items toggle Vimperator options may be
|
||||||
|
// confusing. --djk
|
||||||
|
if (window.getMarkupDocumentViewer().authorStyleDisabled)
|
||||||
{
|
{
|
||||||
let css = [];
|
let css = [];
|
||||||
// FIXME: Broken for imgspans.
|
// FIXME: Broken for imgspans.
|
||||||
|
|||||||
Reference in New Issue
Block a user