Created
November 24, 2018 17:26
-
-
Save 1c7/5b6453f0dec28a0fdc9c0fe11215c976 to your computer and use it in GitHub Desktop.
grap youtube playlist title
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 original = $('#playlist tr span').text().split('\n') | |
| original.splice(0,1) | |
| var res = original.filter((element, index) => { | |
| return index % 2 == 0; | |
| }) | |
| var result = res.map(s => s.trim()); | |
| result.join('\n') |
1c7
commented
Nov 24, 2018
Author

Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment