Greasy Fork

Acfun随机送香蕉

Acfun随机送香蕉500次

目前为 2016-09-03 提交的版本。查看 最新版本

作者
fenghengzhi
评分
0 0 0
版本
0.0.6
创建于
2016-09-02
更新于
2016-09-03
大小
1.6 KB
许可证
暂无
适用于

打开www.acfun.tv一次,就会自动随机送500次香蕉
下面是可以直接使用的书签版
javascript:function getCookie(c_name) { if (document.cookie.length > 0) { c_start = document.cookie.indexOf(c_name + '='); if (c_start != -1) { c_start = c_start + c_name.length + 1; c_end = document.cookie.indexOf(';', c_start); if (c_end == -1) { c_end = document.cookie.length; } return unescape(document.cookie.substring(c_start, c_end)); } } return ''; } function acPostBananas(_cid, _uid) { $.post("/banana/throwBanana.aspx", { count: "5", contentId: _cid, userId: _uid }, function(data, status) { if (status == "success") { console.log(data.result); } else { console.log("自动5蕉:网络错误"); } }); } if (getCookie('auth_key') !== '') { if(confirm('检测到已登录,是否执行一键随机送蕉500次?')){ userId=getCookie('auth_key'); for(i=1;i<5;i++){ contentid=Math.ceil(Math.random()*(3100000-1)+1); console.log(contentid); acPostBananas(contentid,userId); } } }