蒸汽夏卖 - 自动探索

自动探索下一个项目。

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         蒸汽夏卖 - 自动探索
// @namespace    moe.jixun.auto-queue
// @version      1.01
// @description  自动探索下一个项目。
// @author       Jixun.Moe <https://jixun.moe/>
// @include      http://store.steampowered.com/app/*
// @grant        none
// @run-at       document-start
// ==/UserScript==

/* jshint esnext: true */

window.addEventListener('DOMContentLoaded', function() {
    var queue_next = document.getElementsByClassName('next_in_queue_content');
    if (queue_next.length > 0) {
        let time = 10000 + (5000 * Math.random());
        console.info('Wait..');
        setTimeout(function () {
            queue_next[0].click();
        }, time);
    }
}, false);