Greasy Fork 还支持 简体中文。

Qidian score autoclick

Open the score site and let the script do all the click!

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey, το Greasemonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

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

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Userscripts για να εγκαταστήσετε αυτόν τον κώδικα.

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

Θα χρειαστεί να εγκαταστήσετε μια επέκταση διαχείρισης κώδικα χρήστη για να εγκαταστήσετε αυτόν τον κώδικα.

(Έχω ήδη έναν διαχειριστή κώδικα χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

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.

(Έχω ήδη έναν διαχειριστή στυλ χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

// ==UserScript==
// @name                Qidian score autoclick
// @name:ZH-CN          起点中文经验值自动签到
// @namespace           http://tampermonkey.net/
// @version             1.9
// @description         Open the score site and let the script do all the click!
// @description:ZH-CN   打开领取经验值的页面,然后让脚本在后台自动处理所有工作!
// @author              SLAPaper
// @include             /^https?://my\.qidian\.com/level/
// @license             MIT
// ==/UserScript==

(function() {
    'use strict';

    function clicker() {
        let expList = document.getElementsByClassName("elGetExp");

        if (expList.length > 0) {
            expList[0].click();
        }
    }

    function refresher() {
        window.location.reload(true);
    }

    window.addEventListener("load", clicker);
    setInterval(clicker, 60*1000);
    setInterval(refresher, 30*60*1000); // handle cross day or browser sleep
})();