diff options
author | anekos | 2008-11-07 11:37:04 +0000 |
---|---|---|
committer | anekos | 2008-11-07 11:37:04 +0000 |
commit | 1e5790159685a0d336c248b9a533f627165d831a (patch) | |
tree | bf6c7edad6d71f0dc2e65f7d37957e1c766a9080 /appendAnchor.js | |
parent | 3a78c1d1bcd4c07f6dca28d6bde03cf175699bd1 (diff) | |
download | vimperator-plugins-1e5790159685a0d336c248b9a533f627165d831a.tar.bz2 |
ヒントを出すときに自動で :anc できる設定を追加
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@22947 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'appendAnchor.js')
-rw-r--r-- | appendAnchor.js | 10 |
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; |