Skip to content

Commit

Permalink
Add smashscript
Browse files Browse the repository at this point in the history
  • Loading branch information
e0da committed Jun 21, 2016
1 parent db88c1f commit a3d4daa
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions files/bin/smashscript
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

echo '$("a").filter(function(_, link) {return $(link).text().match(/\bEPUB\b/);}).map(function (_, link) { return link.href; }).toArray().join("\n")' | tee | pbcopy

# vi: set textwidth=0:

0 comments on commit a3d4daa

Please sign in to comment.