Last active
May 17, 2017 06:23
-
-
Save wilon/d57447181e2130e3c70dc97a83ff9419 to your computer and use it in GitHub Desktop.
斗鱼自动打卡
This file contains hidden or 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() { | |
'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); | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
在直播间console里粘上代码enter就行了(╯°Д°)