Last active
February 9, 2023 07:48
-
-
Save aoirint/98712ff4bcf7112aea3fe9ef36050b5b to your computer and use it in GitHub Desktop.
DAM★とも 精密採点Ai用 TSV化
This file contains 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
// DAM★とも 精密採点Ai | |
var s = ''; | |
// Run in every page (Browser developer console) | |
// 採点日時 曲リクエストID 曲名 アーティスト名 点数 採点ID 詳細URL 曲URL | |
s += jQuery('#DamHistoryMarkingAiListResult') | |
.find('table') | |
.map(function(i,e){ | |
var cs = jQuery(e).find('td'); | |
var reqUrlString = jQuery(cs[1]).find('a').attr('href'); | |
var reqUrl = new URL(reqUrlString, location.href); | |
var detailUrlString = jQuery(cs[3]).find('a').attr('href'); | |
var cloneCs1 = jQuery(cs[1]).clone(); | |
cloneCs1.find('a').remove(); | |
cloneCs1.find('br').remove(); | |
return [ | |
jQuery(cs[0]).text(), | |
reqUrl.searchParams.get('requestNo'), | |
jQuery(cs[1]).find('a').text(), | |
cloneCs1.text(), | |
jQuery(cs[2]).text().slice(0,-1), | |
detailUrlString, | |
new URL(detailUrlString, location.href).toString(), | |
reqUrl.toString(), | |
].join('\t')} | |
).toArray().join('\n') + '\n'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment