Greasy Fork

Greasy Fork is available in English.

自动领取喵币

自动领取淘宝的喵币,PC端需要进入开发者工具调整为手机模式

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         自动领取喵币
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  自动领取淘宝的喵币,PC端需要进入开发者工具调整为手机模式
// @author       Lee
// @match        https://pages.tmall.com/wow/a/act/tmall/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    // Your code here...
    document.write('<iframe width=100% height=100% frameborder=0 scrolling=yes>');
    frames[0].location.href = location.href;
    var idx = 1; var o = document.createElement('div');
    o.innerHTML = '第1次'; o.setAttribute('id', 'setTimes');
    o.setAttribute('style', 'text-align: center;font-size: 14px;background: #000;color: #fff;padding: 10px 0;');
    document.body.insertBefore(o, document.body.childNodes[0]);
    var timer = setInterval(function () {
        if (idx > 70) { clearInterval(timer);
        document.getElementById('setTimes').innerHTML = '已结束'
        }
        else
        {
            document.getElementById('setTimes').innerHTML = '第' + idx + '次';
            t()
        }
    }, 13000);
    function t() {
        setTimeout(function () {
            frames[0].document.getElementsByClassName('svelte-qr71gg')[1].click();
            setTimeout(function () {
                frames[0].location.reload()
            }, 1000)
        }, 12000);
        idx++
    }
    t();
})();