2021/4/15下午3:32:44
当前为
// ==UserScript==
// @name HPOOL CHIA收益计算
// @namespace Violentmonkey Scripts
// @match *://www.hpool.com/statistics/chia*
// @grant none
// @version 1.1
// @author Edik
// @description 2021/4/15下午3:32:44
// @require https://code.jquery.com/jquery-2.2.4.js
// ==/UserScript==
(function() {
'use strict';
document.addEventListener("DOMContentLoaded",startaa);
startaa();
function startaa(){
$.get("https://www.hpool.com/api/pool/detail?language=zh&type=chia", function(result){
let capacity = result.data.capacity
let html = $($($('.stat-t').children()[2]).children()[2]).html()
let num = html.substring(0,html.indexOf("XCH/TB'
$('.stat-t').append(htmlNew)
htmlNew = '