Skip to content

Instantly share code, notes, and snippets.

@wilon
Last active May 17, 2017 06:23
Show Gist options
  • Save wilon/d57447181e2130e3c70dc97a83ff9419 to your computer and use it in GitHub Desktop.
Save wilon/d57447181e2130e3c70dc97a83ff9419 to your computer and use it in GitHub Desktop.
斗鱼自动打卡
(function() {
'use strict';
send("#打卡");
window.setInterval(function() {
var date = new Date();
var hour = date.getHours();
var min = date.getMinutes();
var sec = date.getSeconds();
// 随机点播电影 - -!
if (min % 2 == 0 && sec == 30) {
var danmu = [
'金瓶梅', "安塔芮丝", "血恋", "键", "西西里的美丽传说", "巴黎野玫瑰", "九歌", "罗马帝国艳情史", "姊妹情色", "母亲,爱情的限度", "嫩草的香味", "解放的潘多拉", "大开眼戒", "困惑的浪漫", "困惑的浪漫2", "意大利种马", "索多玛120天", "与我同眠", "天地无伦", "本能", "本能2", "爱欲疑狂", "感官世界", "霜花店", "情色沙漠"
];
var dd = parseInt(Math.random() * danmu.length);
var d = "#" + danmu[dd] + "-" + parseInt(Math.random() * 9999);
send(d);
}
// 每小时打卡
if ((min == 0 && sec == 30) || (min == 10 && sec == 31)) {
send("#打卡");
}
}, 1000);
function send(msg) {
$('.cs-textarea').val(msg);
$('.b-btn').click();
console.log(new Date() + ' SEND DANMU: ' + msg);
}
})();
@wilon
Copy link
Author

wilon commented May 17, 2017

在直播间console里粘上代码enter就行了(╯°Д°)

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