Created
          July 4, 2010 05:16 
        
      - 
      
- 
        Save shinnya/463159 to your computer and use it in GitHub Desktop. 
    [KeySnail] Copy URL to clipboard
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | key.setViewKey('M-u', function (ev, arg) \ | |
| { | |
| display.echoStatusBar("Copy URL to clipboard"); | |
| command.setClipboardText(getBrowser().contentDocument.URL); | |
| }, 'Copy URL to clipboard'); | 
おぉ、そうなんですか。以後気を付けます。
現行のFirefoxで動かなくなってるようなので、こちらで。
(下記も57で動かなくなるのかもしれないけど)
function (ev, arg) {
    command.setClipboardText(gBrowser.currentURI.spec);
    display.echoStatusBar("Copy URL to clipboard");
}
function (ev, arg) {
    command.setClipboardText(gBrowser.contentTitle + '\n' + gBrowser.currentURI.spec);
    display.echoStatusBar("Copied Title and URL");
}
レスポンス遅いですが、ご丁寧にどうもありがとうございます。
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
            
KeySnail の初期化ファイル, プラグインは KeySnail.modules というコンテキストの元で評価されるので, this.modules は省くことが可能 (推奨) です.