Changeset 22947

Show
Ignore:
Timestamp:
11/07/08 20:37:04 (5 years ago)
Author:
anekos
Message:

ヒントを出すときに自動で :anc できる設定を追加

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/javascript/vimperator-plugins/trunk/appendAnchor.js

    r22557 r22947  
    55 * @author        SAKAI, Kazuaki 
    66 * @version       0.02 
     7 * @minVersion    2.0pre 
     8 * @maxVersion    2.0pre 
    79 * == /VimperatorPlugin== 
    810 */ 
    911 
    1012(function(){ 
     13 
     14  if (window.eval(liberator.globalVariables.auto_append_anchor || 'false')) { 
     15    let originalHintsShow = liberator.modules.hints.show; 
     16    hints.show = function () { 
     17      liberator.execute('anc'); 
     18      originalHintsShow.apply(this, arguments); 
     19    }; 
     20  } 
    1121 
    1222  liberator.modules.commands.addUserCommand(['anc'], 'append anchors to texts look like url',