story

story1

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

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

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         story
// @namespace    http://tampermonkey.net/
// @version      2.0
// @description  story1
// @author       kl
// @match        https://faucet.story.foundation/*
// @icon         https://www.google.com/s2/favicons?domain=google.com
// @require      https://cdn.jsdelivr.net/npm/[email protected]/jquery.min.js
// @require      https://cdn.jsdelivr.net/npm/[email protected]/index.min.js
// @require      https://cdn.jsdelivr.net/npm/[email protected]/unibabel/index.js
// @require      https://cdn.jsdelivr.net/npm/[email protected]/unibabel/unibabel.hex.js
// @require      https://cdn.jsdelivr.net/npm/[email protected]/unibabel/unibabel.base32.js
// @require      https://cdn.jsdelivr.net/npm/[email protected]/forge/dist/forge.min.js
// @require      https://cdn.jsdelivr.net/npm/[email protected]/botp/sha1-hmac.js
// @require      https://cdn.jsdelivr.net/npm/[email protected]/botp/index.js
// @require      https://cdn.jsdelivr.net/npm/[email protected]/authenticator.js
// @grant        GM_xmlhttpRequest
// @connect      weleader5.oss-cn-shenzhen.aliyuncs.com
// @connect      43.135.155.29
// @connect      localhost
// @connect      2captcha.com
// @connect      airdropapi.beetaa.cn
// @grant        unsafeWindow
// @grant        GM_addStyle
// @grant        GM_deleteValue
// @grant        GM_listValues
// @grant        GM_addValueChangeListener
// @grant        GM_removeValueChangeListener
// @grant        GM_setValue
// @grant        GM_getValue
// @grant        GM_log
// @grant        GM_getResourceText
// @grant        GM_getResourceURL
// @grant        GM_registerMenuCommand
// @grant        GM_unregisterMenuCommand
// @grant        GM_openInTab
// @grant        GM_xmlhttpRequest
// @grant        GM_download
// @grant        GM_getTab
// @grant        GM_saveTab
// @grant        GM_getTabs
// @grant        GM_notification
// @grant        GM_setClipboard
// @grant        GM_info
// @license		 kl1
// ==/UserScript==
 
(function () {
    'use strict';
    $(function () {
        pageOperate();
    })
    function pageOperate() {
        var pageurl = window.location.href.split('//')[1].split('?')[0];
        console.info(pageurl)
        if (pageurl.indexOf("https://faucet.story.foundation/") > -1) {
            pageurl = "faucet.story.foundation"
        }
 
        switch (pageurl) {
            case 'faucet.story.foundation/':
            case 'faucet.story.foundation':
                var findinalstr = setInterval(function () {
                    if ( $('#address').length >0) {  
                        clearInterval(findinalstr);
                        GM_xmlhttpRequest({
                            url: "http://43.135.155.29:9291/api/KT_Address/Get",
                            method: "GET",
                            data: "",
                            headers: {
                                "Content-type": "application/x-www-form-urlencoded"
                            },
                            onload: function (xhr) {
                                if (xhr.status == 200) {
                                    var data = JSON.parse(xhr.responseText); 
                                    if (data.response != null) {
                                        $("input[id='address']").attr("value", data.response.Wallet); 
                                        return;
 
                                    }
 
                                }
 
                            }
                        })
                    }
 
                }, 15000);
                break; 
        }
    }
})();