-
-
Save nvsofts/30fee4e22cc2a2a7000bcfe6d26f7cbd to your computer and use it in GitHub Desktop.
https://www.tv-asahi.co.jp/music/vote/20220923_renda/round1/js/round1_post.js (for inspection purposes)
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
$(function() { | |
const ids = $('[id^=000]'); | |
var b4 = {}; | |
var b5 = {}; | |
var b3 = 0; | |
var b2 = []; | |
$.each(ids, function(a, b) { | |
b5[b.id] = 0 | |
}); | |
$('[id^=000]').on('click', function(b0) { | |
if (++b3 === 1) { | |
var b1 = setInterval(function() { | |
var j = false; | |
$.each(b5, function(a, b) { | |
if (b > 0) { | |
j = true; | |
return j | |
} | |
}); | |
const rand = Math.floor(Math.random() * 99); | |
var l = false; | |
if (rand === 0) { | |
l = true | |
} | |
if (j) { | |
if (l) { | |
var m = {}; | |
function k(a) { | |
return !Object.keys(a).length | |
} | |
for (let key in b5) { | |
b4[key] = b5[key]; | |
b4['most' + key] = 0; | |
var o = Object.values(m); | |
if (k(m)) { | |
m[key] = b5[key] | |
} else if (o[0] < b5[key]) { | |
m = {}; | |
m[key] = b5[key] | |
} else if (o[0] == b5[key]) { | |
m[key] = b5[key] | |
} else { | |
continue | |
} | |
} | |
var n = []; | |
n = Object.keys(m); | |
var p = b2.reverse(); | |
p.some(function(a) { | |
if (n.includes(a)) { | |
b4['most' + a] = 1; | |
return true | |
} | |
}); | |
$.ajax({ | |
type: 'POST', | |
url: 'https://www.tv-asahi.co.jp/mps/bangumi/music/special_20220923/api/register_renda_02.php', | |
data: b4, | |
}).done(function(a, i, b) {}).fail(function(b, i, a) {}).always(function() { | |
clearInterval(b1) | |
}) | |
} else { | |
clearInterval(b1) | |
} | |
} | |
}, 10000) | |
}++b5[$(this).attr("id")]; | |
b2.push($(this).attr("id")) | |
}) | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment