123kanfang

123看房抢到图自动确定脚本

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         123kanfang
// @namespace    http://tampermonkey.net/
// @version      0.2
// @description  123看房抢到图自动确定脚本
// @author       首席插秧师
// @match        http://webresource.123kanfang.com/studioCloud4/index.html*
// @grant        none
// ==/UserScript==

(function () {
    'use strict';
    setInterval(function () {
        let le = document.getElementsByClassName("el-button el-button--default el-button--small el-button--primary").length;
        if (le == 1) {
            document.getElementsByClassName("el-button el-button--default el-button--small el-button--primary")[0].click();
            setTimeout(function () {
                document.getElementsByClassName("el-button el-button--default el-button--small el-button--primary")[0].click();
                console.log("抢到图啦!");
            }, 600)

        }
        else {
            console.log("还没抢到哦!");
        }
    }, 6000);


    // Your code here...
})();