Skip to content

Instantly share code, notes, and snippets.

@osa9
Created June 27, 2012 14:14
Show Gist options
  • Save osa9/3004308 to your computer and use it in GitHub Desktop.
Save osa9/3004308 to your computer and use it in GitHub Desktop.
" Readability delete article hint mode
js <<EOM
hints.addMode('d', 'delete article', function(elem) {
elem.getElementsByClassName('article-confirmDelete')[0].click();
elem.getElementsByClassName('article-remove')[0].click();
}, function() '//*[contains(@class,"article-box")]');
EOM
nnoremap ,rd ;d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment