Skip to content

Instantly share code, notes, and snippets.

@aoirint
Created February 21, 2020 13:27
Show Gist options
  • Save aoirint/3db9abe3697be4f62503595ab7101a4d to your computer and use it in GitHub Desktop.
Save aoirint/3db9abe3697be4f62503595ab7101a4d to your computer and use it in GitHub Desktop.
Joysound Uta-suki "My History" browser-side backup script for Excel/Spreadsheet
var s = '';
// Run in every page (Browser developer console)
// 演奏日付 曲ID(selSongNo) 曲名 アーティスト名 キー URL
s += $('.usk-block-link').map(function(i,e){var s=$(e).children('span'); var u=$(e).attr('href'); var kid=u.slice(u.lastIndexOf('/')+1, u.lastIndexOf('?')); var a=$(s[0]).text(); var as=a.lastIndexOf('/'); return [ $(s[1]).text().substr(5), kid, a.slice(0,as), a.slice(as+1), $(s[2]).text().substr(3), 'https://www.joysound.com'+u ].join('\t')}).toArray().join('\n') + '\n';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment