Greasy Fork

Greasy Fork is available in English.

Acfun随机送香蕉

Acfun随机送香蕉500次

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         Acfun随机送香蕉
// @namespace    http://greasyfork.icu/users/63665
// @homepage     http://greasyfork.icu/scripts/22845
// @version      0.0.9
// @description  Acfun随机送香蕉500次
// @author       You
// @match        http://www.acfun.tv
// @match        http://www.aixifan.com
// @grant        none
// @icon         http://cdn.aixifan.com/ico/favicon.ico
// @note         github更新测试
// @run-at       document-idle
// ==/UserScript==
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("网络错误");
        }

    });
}
(function(){
    userId=$.cookie('auth_key');
    if (userId !== '' && userId !== null) {
        if(confirm('检测到已登录,是否执行一键随机送蕉500次?')){
            max=3100000;
            min=1;
            for(i=1;i<=500;i++){
                contentid=Math.ceil(Math.random()*(max-min)+min);
                console.log(contentid);
                acPostBananas(contentid,userId);
            }
        }
    }
}());