Created
September 3, 2015 15:44
-
-
Save mescoda/d86b9a0a5f3e5b90358b to your computer and use it in GitHub Desktop.
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
var r = []; | |
[].forEach.call(document.getElementsByTagName('blockquote'), function (item) { | |
var text = item.innerHTML.trim(); | |
if (text.indexOf('magnet') > -1 || text.indexOf('ed2k') > -1) { | |
r.push(text); | |
} | |
}); | |
r.forEach(function (item, index) { | |
console.log(item); | |
if ((index + 1) % 15 === 0) { | |
console.log('\n') | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment