Skip to content

Instantly share code, notes, and snippets.

@to
Forked from azu/shortcutkey.ldrcommnet.js
Created July 31, 2009 17:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save to/159325 to your computer and use it in GitHub Desktop.
Save to/159325 to your computer and use it in GitHub Desktop.
shortcutkeys['CTRL + D'] = {
description : 'LDR hatebu comment',
execute : function(e){
var fx = getMostRecentWindow();
var win = wrappedObject(fx.content);
if(!/(http:\/\/reader\.livedoor\.com\/reader\/)/.test(win.location))
return;
cancel(e);
var item = win.get_active_item(true);
var permalink = item.link.replace(/#/, '%23');
fx.hBookmark.CommentViewer.toggle(permalink);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment