aboutsummaryrefslogtreecommitdiffstats
path: root/appendAnchor.js
diff options
context:
space:
mode:
Diffstat (limited to 'appendAnchor.js')
-rw-r--r--appendAnchor.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/appendAnchor.js b/appendAnchor.js
index 27c84cb..a6af591 100644
--- a/appendAnchor.js
+++ b/appendAnchor.js
@@ -4,11 +4,21 @@
* @description append anchors to texts look like url.
* @author SAKAI, Kazuaki
* @version 0.02
+ * @minVersion 2.0pre
+ * @maxVersion 2.0pre
* == /VimperatorPlugin==
*/
(function(){
+ if (window.eval(liberator.globalVariables.auto_append_anchor || 'false')) {
+ let originalHintsShow = liberator.modules.hints.show;
+ hints.show = function () {
+ liberator.execute('anc');
+ originalHintsShow.apply(this, arguments);
+ };
+ }
+
liberator.modules.commands.addUserCommand(['anc'], 'append anchors to texts look like url',
function(arg, special) {
var doc = window.content.document;