Skip to content

Instantly share code, notes, and snippets.

@1c7
Created November 24, 2018 17:26
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 1c7/5b6453f0dec28a0fdc9c0fe11215c976 to your computer and use it in GitHub Desktop.
Save 1c7/5b6453f0dec28a0fdc9c0fe11215c976 to your computer and use it in GitHub Desktop.
grap youtube playlist title
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
Copy link
Author

1c7 commented Nov 24, 2018

@1c7
Copy link
Author

1c7 commented Nov 24, 2018

@1c7
Copy link
Author

1c7 commented Nov 24, 2018

image

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