美团返现

抢美团自动返现

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         美团返现
// @namespace    http://tampermonkey.net/
// @version      1.0.2
// @description  抢美团自动返现
// @author       chris.f
// @match        https://offsiteact.meituan.com/web/hoae/order_cashback_activity/index.html*
// @icon         data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant        none
// @require      https://cdn.bootcss.com/jquery/3.4.1/jquery.min.js
// @license      cacalot123

// ==/UserScript==

(function() {
    'use strict';
    const wantName = '德蕓坊·北京烤鸭(张江旗舰店)'
    const dianName = []
    const interval = setInterval(function(){
        $("html, body").animate({ scrollTop: $(document).height() }, "slow");
    },2000)
    setTimeout(function(){
        $.each( $('.poi-list-item'),function(index,value){
            const name = $(value).find('.poi-name').html();
            const $btn = $(value).find('.cash-back-not-order-btn');
                 console.log('text',name)
                 dianName.push(name)
            if(name === wantName && $btn.text() === '报名下单') {
                 console.log('text',$btn.text(),$btn.html())
                $btn.click()
            }
        });
    },10000)
     setTimeout(function(){
         console.log('dianName',dianName.join(','))
         clearInterval(interval)
     }, 11000)

     setTimeout(()=>{
       location.reload();
     },15000)
    // Your code here...
})();