Greasy Fork 支持简体中文。

Clash.GG - Roulette - Show Last 200

This script will show last 200 roulette results.

// ==UserScript==
// @name         Clash.GG - Roulette - Show Last 200
// @namespace    https://gge.gg
// @version      0.1.1
// @description  This script will show last 200 roulette results.
// @author       SomeGuy
// @match        https://clash.gg/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=clash.gg
// @grant        none
// @license      WTFPL
// ==/UserScript==

(function() {
    'use strict';

    async function fetchData() {
        if (window.location.href.indexOf("roulette") === -1) {
            return;
        }
        const response = await fetch("/api/roulette/current");
        const clashTriple = await response.json();

        const jackpot = parseFloat(clashTriple.jackpot / 100).toFixed(2);
        const history = clashTriple.history;

        const numberCounts = {};
        history.forEach(number => {
            numberCounts[number] = (numberCounts[number] || 0) + 1;
        });

        const green = numberCounts[0] || 0;
        const blueBait = numberCounts[4] || 0;
        const yellowBait = numberCounts[11] || 0;

        let blue = 0;
        let yellow = 0;
        for (let number in numberCounts) {
            if (number == 0) {
                // already counted in green
            } else if (number == 4) {
                // already counted in blueBait
            } else if (number == 11) {
                // already counted in yellowBait
            } else if (number > 7) {
                yellow += numberCounts[number];
            } else {
                blue += numberCounts[number];
            }
        }

        function findFirstZeroPosition(arr) {
            return arr.indexOf(0);
        }

        const position = findFirstZeroPosition(history);

        const arrayR = {
            green: green,
            blueBait: blueBait,
            yellowBait: yellowBait,
            yellow: yellow,
            blue: blue,
            jackpot: jackpot,
            lastgreen: position
        };

        const tripleHistory = JSON.stringify(history);

        const last100 = `🟩 **Green**: \`${green}\`\r\n 🟦 **Blue**: \`${blue}\`\r\n 🔵 **Blue Bait**: \`${blueBait}\`\r\n 🟨 **Yellow**: \`${yellow}\`\r\n 🟡 **Yellow** Bait: \`${yellowBait}\``;
        const jackpotText = `💚 **Jackpot value**: \`${jackpot}\`\r\n`;
        const green1 = history[0];
        const green2 = history[1];
        let icon_number_style = `display: flex;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: center;
    justify-content: center;
    --tw-bg-opacity: 1;
    background-color: rgb(34 197 94 / var(--tw-bg-opacity));
    background-image: linear-gradient(to bottom, var(--tw-gradient-stops));
    --tw-gradient-from: #2c3034 var(--tw-gradient-from-position);
    --tw-gradient-to: #1f2225 var(--tw-gradient-to-position);
    --tw-gradient-stops: var(--tw-gradient-from),var(--tw-gradient-to);
    height: 2.25rem;
    width: 2.25rem;
    border-radius: 9999px;margin-right: 1rem;`;
        let icon_style_blue = `display: flex;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: center;
    justify-content: center;
    --tw-bg-opacity: 1;
    background-color: rgb(34 197 94 / var(--tw-bg-opacity));
    background-image: linear-gradient(to bottom, var(--tw-gradient-stops));
    --tw-gradient-from: #93c5fd var(
    --tw-gradient-from-position);
    --tw-gradient-to: #60a5fa var(
    --tw-gradient-to-position);
    --tw-gradient-stops: var(
    --tw-gradient-from),var(--tw-gradient-to);
    height: 2.25rem;
    width: 2.25rem;
    border-radius: 9999px;`;
        let icon_style_yellow = `    display: flex;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: center;
    justify-content: center;
    --tw-bg-opacity: 1;
    background-color: rgb(34 197 94 / var(--tw-bg-opacity));
    background-image: linear-gradient(to bottom, var(--tw-gradient-stops));
    --tw-gradient-from: #fef08a var(--tw-gradient-from-position);
    --tw-gradient-to: #fde047 var(--tw-gradient-to-position);
    --tw-gradient-stops: var(--tw-gradient-from),var(--tw-gradient-to);
    height: 2.25rem;
    width: 2.25rem;
    border-radius: 9999px;`;
        let icon_style_green = `    display: flex;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: center;
    justify-content: center;
    --tw-bg-opacity: 1;
    background-color: rgb(34 197 94 / var(--tw-bg-opacity));
    background-image: linear-gradient(to bottom, var(--tw-gradient-stops));
    --tw-gradient-from: #4ade80 var(--tw-gradient-from-position);
    --tw-gradient-to: #22c55e var(--tw-gradient-to-position);
    --tw-gradient-stops: var(--tw-gradient-from),var(--tw-gradient-to);
    height: 2.25rem;
    width: 2.25rem;
    border-radius: 9999px;`;
        let svg_blue = `<div style="${icon_style_blue}"><svg width="161" height="179" viewBox="0 0 161 179" fill="none" xmlns="http://www.w3.org/2000/svg" class="css-l89uz7"><path fill-rule="evenodd" clip-rule="evenodd" d="M56.4213 149.397H76.288L79.4667 152.576C81.4708 154.58 85.7211 156.584 87.9691 157.644C88.3952 157.845 88.7494 158.012 89.0027 158.139C90.0826 158.679 90.7956 158.118 91.6403 157.454C92.0387 157.14 92.4666 156.804 92.976 156.549C94.2475 155.914 94.0356 150.457 93.7707 147.808H100.128V158.139C100.128 160.523 102.512 164.496 104.101 166.88C105.691 169.264 116.816 173.237 118.405 173.237C119.677 173.237 122.644 174.297 123.968 174.827C122.644 176.681 131.915 178.154 132.709 178.005C142.881 176.098 150.192 166.085 152.576 161.317C163.243 136.429 161.183 128.721 160.062 124.528L160.062 124.528C159.93 124.035 159.812 123.591 159.728 123.173C158.933 119.2 153.371 111.253 150.192 112.048C147.649 112.684 145.954 112.313 145.424 112.048C144.788 110.141 143.04 110.724 142.245 111.253C140.126 110.194 134.617 107.598 129.531 105.691C124.445 103.783 120.524 107.015 119.2 108.869C119.2 105.055 116.551 100.393 115.227 98.5387C113.902 96.9493 112.048 93.9296 115.227 94.5654C118.405 95.2011 120.789 93.2409 121.584 92.1814C123.703 87.6782 127.147 75.0165 123.968 60.3947C120.789 45.7728 113.637 43.7067 110.459 44.5013C110.194 43.4418 109.187 40.0512 107.28 34.9653C105.373 29.8795 99.5982 28.608 96.9493 28.608V23.84L77.0827 5.56267L76.288 7.152C75.4933 6.88711 73.7451 6.35733 73.1093 6.35733C72.4736 6.35733 68.0765 2.11911 65.9573 0L64.368 2.384L70.7253 9.536C65.0037 6.35733 57.216 7.152 54.0373 7.94667L49.2693 3.17867C48.4747 3.97333 46.5675 5.56267 45.296 5.56267C44.0245 5.56267 38.4089 2.384 35.76 0.794667C31.2569 1.58933 22.4096 3.3376 23.0453 3.97333C23.2271 4.15509 23.6583 4.63683 24.2247 5.26977L24.2248 5.26978C26.1351 7.40425 29.5844 11.2582 30.1973 11.1253C24.8996 12.1849 22.7804 14.304 20.3082 16.7763C19.072 18.0124 17.7476 19.3369 15.8933 20.6613C11.835 23.5602 9.46856 31.1117 7.86826 36.2184C7.27507 38.1114 6.78714 39.6684 6.35733 40.528C5.08587 43.0709 6.88711 47.4151 7.94667 49.2693H0V63.5733C3.97333 63.5733 6.35733 64.368 7.94667 67.5467C8.88919 69.4317 8.43435 76.3473 8.07377 81.8297C7.82632 85.592 7.62326 88.6793 7.94667 89.0027C11.7611 94.0886 14.304 103.307 15.0987 107.28L1.58933 110.459C2.64889 112.048 5.08587 115.545 6.35733 116.816C7.28827 117.747 10.673 119.768 13.4772 121.443L13.4777 121.444L13.4779 121.444C15.4609 122.628 17.1535 123.639 17.4827 123.968C18.2773 124.763 35.76 127.147 37.3493 127.147C37.4854 127.147 37.633 127.141 37.7893 127.135C39.4595 127.069 42.1173 126.964 42.1173 133.504C42.1173 140.656 52.448 147.013 54.0373 147.013C54.832 147.013 55.0307 147.609 55.2293 148.205C55.428 148.801 55.6267 149.397 56.4213 149.397ZM90.5921 67.5467C90.5921 78.9576 81.3417 88.208 69.9307 88.208C58.5198 88.208 49.2694 78.9576 49.2694 67.5467C49.2694 56.1358 58.5198 46.8854 69.9307 46.8854C81.3417 46.8854 90.5921 56.1358 90.5921 67.5467ZM58.3732 140.826C60.8495 138.961 60.2975 134.05 57.1404 129.857C53.9832 125.663 49.4164 123.774 46.9401 125.638C44.4638 127.503 45.0157 132.414 48.1729 136.607C51.3301 140.801 55.8969 142.69 58.3732 140.826ZM123.817 67.654C124.953 79.0082 121.958 88.6045 117.128 89.0879C112.298 89.5712 107.461 80.7587 106.325 69.4045C105.189 58.0502 108.183 48.4539 113.013 47.9706C117.844 47.4872 122.68 56.2997 123.817 67.654ZM92.9296 144.345C99.7503 149.097 110.582 145.338 117.122 135.95C123.663 126.561 123.435 115.098 116.615 110.347C109.794 105.595 98.9625 109.354 92.422 118.742C85.8816 128.131 86.1088 139.593 92.9296 144.345Z"></path></svg></div>`;
        let svg_blue_bait = `<div style="${icon_style_blue}"><svg width="111" height="132" viewBox="0 0 111 132" fill="none" xmlns="http://www.w3.org/2000/svg" class="css-l89uz7"><path d="M87.1888 122.333L88.5841 123.322L85.5343 124.036C88.3439 124.508 90.9896 123.705 93.6696 124.683L94.7866 125.925C94.2567 126.565 93.3875 126.431 92.5679 126.42C90.2577 126.383 87.9932 126.892 85.6716 126.858C84.1467 126.832 82.6218 127.491 81.0359 127.565C80.689 127.565 80.3611 127.937 79.8579 128.264C80.7157 128.855 81.5772 129.171 82.5265 129.696L83.2889 131.629C81.0893 131.629 79.0955 131.834 77.1894 131.573C75.2833 131.313 73.3505 130.651 71.9552 129.127C71.574 128.71 71.147 128.335 70.6857 127.881C70.0834 128.625 69.4887 129.368 68.913 130.112H67.9447C67.6092 129.249 68.1811 128.573 68.4632 127.94C69.6717 125.241 70.457 122.467 70.1177 119.515C69.9129 117.729 69.3161 116.006 68.3679 114.465C67.1899 112.532 65.6459 110.862 64.3307 109.029C63.4806 107.847 62.7639 106.575 61.9481 105.277H53.1457C52.6348 106.962 52.3146 108.683 51.9524 110.371C51.5712 112.138 51.007 113.867 50.7211 115.651C50.4466 117.366 49.7223 118.998 49.5431 120.857C51.068 120.857 52.5357 120.946 53.9691 120.824C54.8383 120.749 55.5779 120.296 56.5767 120.72C57.3772 121.058 58.4828 120.656 59.3634 120.902C60.5681 121.236 61.9862 121.419 62.661 122.917C61.849 123.211 61.1056 123.058 60.3736 123.081C59.6417 123.103 58.8487 123.081 58.0863 123.081H53.7594V123.304C53.9059 123.374 54.0629 123.422 54.2245 123.445C56.1193 123.388 58.0106 123.64 59.8209 124.189C60.5071 124.397 61.3458 123.861 61.9481 124.561C63.4501 124.382 64.3269 125.323 65.2762 126.368C65.1504 126.695 65.0093 127.07 64.8263 127.557L51.129 125.635C51.1061 126.026 51.0909 126.264 51.068 126.684L53.8204 128.625C54.1711 129.168 54.2665 130.004 54.0301 130.975C53.5421 130.789 53.0503 130.74 52.7987 130.476C51.5293 129.127 49.749 128.68 48.1859 127.851C46.8669 127.152 45.4831 126.513 44.4805 125.364C44.0497 124.869 43.6837 124.323 43.2415 123.739C42.2046 124.204 41.3926 125.397 39.9058 124.735C40.0327 124.513 40.1754 124.299 40.3328 124.096C41.6289 122.698 42.9403 121.311 44.2327 119.909C45.1171 118.95 45.8109 117.269 46.1388 115.849C46.6572 113.651 47.2824 111.483 47.8619 109.297C48.1974 108.007 48.51 106.694 48.8378 105.393C46.8707 104.504 44.9913 103.533 43.0204 102.79C40.0654 101.661 37.1798 100.366 34.3781 98.9116C32.8265 98.1159 31.4655 97.0525 30.0245 96.1155C28.4996 95.1078 27.4817 93.6911 26.3343 92.3972C24.939 90.8132 24.1346 88.8499 23.2616 86.9573C22.4909 85.1551 21.8899 83.2882 21.4661 81.3798C21.2526 80.5283 21.1344 79.6545 20.959 78.777C20.8408 78.2118 20.696 77.6615 20.5969 77.2227C16.0184 75.3933 12.2824 72.7905 10.3 67.979C9.91882 66.3132 10.8071 65.0044 12.778 64.1603C12.2633 63.8926 11.9126 63.7141 11.5657 63.5282C10.0154 62.7153 8.58547 61.7009 7.31507 60.5127C5.63006 58.9249 4.06324 57.2628 2.99581 55.1917C2.41067 54.178 2.02292 53.0673 1.85215 51.9159C1.79877 51.2317 1.44042 50.5699 1.53192 49.8262C1.60054 49.3726 1.8369 48.9413 1.89027 48.4876C2.00381 47.3626 1.77157 46.23 1.22313 45.2341C0.605547 44.0034 -0.0768416 41.1812 0.00702743 40.0099C0.880027 39.0059 1.82546 38.1842 3.28935 38.2474C3.46472 38.2474 3.67058 37.9314 3.926 37.6859C2.19906 35.6966 2.38586 33.6404 3.70107 31.5507C6.20571 30.4724 7.34938 30.6806 9.53759 31.666C9.35657 30.7966 9.24063 29.9155 9.19068 29.0297C9.19068 28.1373 8.9772 27.2486 9.38511 26.3265C9.73202 25.5457 9.62146 24.5789 10.4449 23.8724H13.6129C13.6129 23.8724 13.6319 23.9208 13.6853 23.9393C16.5254 24.9098 17.8482 27.2115 19.1749 29.6172C20.3567 31.7627 21.8092 33.7668 23.1892 35.8045C24.5087 37.6683 25.9328 39.4595 27.4551 41.17C28.4157 42.2855 29.4717 43.3155 30.4629 44.3975C31.8048 45.8625 33.6042 46.3608 35.4874 46.4537C36.7569 46.5169 38.1026 46.8256 39.334 46.1265C39.4293 46.0707 39.5818 46.1265 39.7152 46.1265C43.5998 46.0038 47.4845 45.8402 51.373 45.777C52.5891 45.777 53.8052 46.0484 55.0251 46.1116C56.2288 46.2121 57.4391 46.2121 58.6429 46.1116C60.6977 45.8774 62.7982 45.8848 64.7996 45.368C65.7727 45.1249 66.6821 44.684 67.4682 44.074C69.2676 42.6164 70.6971 40.8725 71.3224 38.5821C71.8426 36.9057 72.2426 35.1962 72.5194 33.4657C72.7329 31.7738 73.156 30.1192 73.2399 28.379C73.3009 27.0404 73.7241 25.7241 74.0328 24.4227C74.282 23.2356 74.6418 22.0731 75.1079 20.9498C75.567 19.8332 76.0836 18.7399 76.6557 17.674C77.3066 16.5611 78.0233 15.4859 78.8019 14.4539C80.2696 12.4535 82.0995 10.7617 83.9294 9.09957C85.2255 7.92087 86.6856 6.90949 88.0657 5.83118C88.0657 4.86814 88.1 3.93856 88.0657 3.0127C88.0391 2.57094 88.1202 2.12933 88.3025 1.72407C88.4847 1.31882 88.7628 0.961467 89.114 0.681318L93.5362 1.18701C94.2986 0.395008 95.0916 -0.0958086 96.2048 0.0157408C97.2417 0.688755 97.6038 1.82656 98.0727 2.89743C99.285 2.94949 99.5023 2.89743 101.012 2.21698L103.299 3.40312V5.76797C104.056 6.03907 104.749 6.45507 105.338 6.99148C105.928 7.52788 106.401 8.17385 106.73 8.89135C106.654 9.97709 107.051 11.2934 106.063 12.4089C106.414 13.5913 107.348 14.3015 108.415 14.8369C109.803 15.5285 110.726 16.5139 111 18.1313C108.777 18.5032 106.444 17.6963 104.653 18.9122C104.294 20.5148 104.077 21.9092 103.658 23.244C103.2 24.6979 101.603 25.6609 99.9751 25.6684C98.9686 25.6684 97.9584 25.6684 96.7728 25.6684C96.9786 26.9512 97.1121 28.1671 97.3827 29.3532C97.6229 30.4166 98.1795 31.4317 98.3015 32.4989C98.4273 33.6144 98.9686 34.6035 99.1821 35.7041C99.4833 37.2583 100.177 38.7605 100.684 40.2888C101.065 41.4823 101.534 42.6722 101.931 43.8695C102.327 45.0668 102.991 46.1005 102.922 47.3759C103.928 48.469 103.833 49.9787 104.371 51.2503C104.908 52.522 104.98 53.935 105.541 55.2364C105.804 55.8499 105.697 56.6047 105.922 57.3112C106.25 58.3783 106.09 59.5831 106.383 60.6577C107.073 63.201 106.677 65.7666 106.704 68.3174C106.727 70.6116 106.056 72.8165 105.179 74.9397C104.874 75.6834 104.481 76.3973 104.104 77.1112C103.726 77.8251 103.341 78.539 102.91 79.2269C102.529 79.8256 102.114 80.4019 101.679 80.9634C100.04 83.0578 98.181 84.9795 96.1323 86.697C93.174 89.1957 89.8231 91.1999 86.5713 93.323C85.0997 94.2823 83.6244 95.2194 82.3778 96.4501C80.6261 98.1495 79.3187 100.234 78.5656 102.53C78.1272 103.898 77.2656 105.151 77.258 106.649C76.7128 107.166 77.1474 107.828 76.8501 108.773L73.9642 111.818C74.0862 112.606 73.8346 113.513 74.2921 114.484C74.6733 115.313 74.0023 116.414 74.6733 117.299C74.7381 117.38 74.7038 117.533 74.7152 117.671C74.841 119.106 74.9363 120.545 75.0965 121.976C75.2197 122.698 75.38 123.412 75.5768 124.118C76.7776 124.613 77.9976 123.977 79.1908 123.698C80.7157 123.326 82.2406 122.806 83.7655 122.419C84.9358 122.114 86.2015 122.333 87.1888 122.333Z"></path></svg></div>`
        let svg_yellow = `<div style="${icon_style_yellow}"><svg width="110" height="149" viewBox="0 0 110 149" fill="none" xmlns="http://www.w3.org/2000/svg" class="css-l89uz7"><path fill-rule="evenodd" clip-rule="evenodd" d="M13.3463 136.412C12.7271 135.173 9.63095 125.885 9.63095 111.643C9.63095 106.008 7.78913 102.021 5.71638 97.5337C2.55044 90.6802 -1.15427 82.6603 0.342608 65.8204C2.8195 37.9554 7.77324 5.1366 52.3573 0.182817C94.4644 -2.9133 106.849 34.2401 106.849 41.6707C106.849 43.8968 107.238 46.5675 107.733 49.9658C108.89 57.911 110.627 69.8337 109.326 89.3509C107.468 117.216 103.134 135.793 98.1798 143.223C93.226 150.654 59.1688 153.131 13.3463 136.412ZM72.0806 63.5926C63.1693 59.7047 59.648 58.1685 53.3296 57.8044C45.4798 57.3521 39.5924 61.423 43.9098 70.9217C48.2272 80.4204 64.3194 77.2542 67.0669 76.3495C68.1673 75.9872 69.0789 75.4072 70.1041 74.7548C71.6387 73.7783 73.428 72.6398 76.4867 71.8263C81.5891 70.4693 81.5891 67.6883 79.6266 66.8508C76.7169 65.6154 74.2404 64.5349 72.0806 63.5926ZM104.54 61.2129C101.391 61.0306 99.4484 62.0903 94.5326 64.7722L94.532 64.7725C93.3407 65.4224 91.9748 66.1676 90.3747 67.0134C89.2948 67.5878 88.9044 70.0099 91.2161 71.595C92.6019 72.5453 93.3195 73.6783 93.935 74.6501C94.3462 75.2993 94.7118 75.8765 95.2005 76.2791C96.4209 77.2841 103.868 81.3137 107.318 73.382C110.769 65.4502 108.453 61.4394 104.54 61.2129ZM84.5259 101.118C82.5173 101.101 67.3971 100.976 69.9947 116.591C72.6604 132.616 95.3195 124.327 94.653 118.249C94.3647 115.619 94.8248 114.127 95.2239 112.833C95.7472 111.136 96.1655 109.779 94.653 106.644C92.5204 102.224 87.1 101.118 84.6564 101.118C84.6223 101.118 84.5786 101.118 84.5259 101.118Z"></path></svg></div>`;
        let svg_yellow_bait = `<div style="${icon_style_yellow}"><svg width="111" height="132" viewBox="0 0 111 132" fill="none" xmlns="http://www.w3.org/2000/svg" class="css-l89uz7"><path d="M87.1888 122.333L88.5841 123.322L85.5343 124.036C88.3439 124.508 90.9896 123.705 93.6696 124.683L94.7866 125.925C94.2567 126.565 93.3875 126.431 92.5679 126.42C90.2577 126.383 87.9932 126.892 85.6716 126.858C84.1467 126.832 82.6218 127.491 81.0359 127.565C80.689 127.565 80.3611 127.937 79.8579 128.264C80.7157 128.855 81.5772 129.171 82.5265 129.696L83.2889 131.629C81.0893 131.629 79.0955 131.834 77.1894 131.573C75.2833 131.313 73.3505 130.651 71.9552 129.127C71.574 128.71 71.147 128.335 70.6857 127.881C70.0834 128.625 69.4887 129.368 68.913 130.112H67.9447C67.6092 129.249 68.1811 128.573 68.4632 127.94C69.6717 125.241 70.457 122.467 70.1177 119.515C69.9129 117.729 69.3161 116.006 68.3679 114.465C67.1899 112.532 65.6459 110.862 64.3307 109.029C63.4806 107.847 62.7639 106.575 61.9481 105.277H53.1457C52.6348 106.962 52.3146 108.683 51.9524 110.371C51.5712 112.138 51.007 113.867 50.7211 115.651C50.4466 117.366 49.7223 118.998 49.5431 120.857C51.068 120.857 52.5357 120.946 53.9691 120.824C54.8383 120.749 55.5779 120.296 56.5767 120.72C57.3772 121.058 58.4828 120.656 59.3634 120.902C60.5681 121.236 61.9862 121.419 62.661 122.917C61.849 123.211 61.1056 123.058 60.3736 123.081C59.6417 123.103 58.8487 123.081 58.0863 123.081H53.7594V123.304C53.9059 123.374 54.0629 123.422 54.2245 123.445C56.1193 123.388 58.0106 123.64 59.8209 124.189C60.5071 124.397 61.3458 123.861 61.9481 124.561C63.4501 124.382 64.3269 125.323 65.2762 126.368C65.1504 126.695 65.0093 127.07 64.8263 127.557L51.129 125.635C51.1061 126.026 51.0909 126.264 51.068 126.684L53.8204 128.625C54.1711 129.168 54.2665 130.004 54.0301 130.975C53.5421 130.789 53.0503 130.74 52.7987 130.476C51.5293 129.127 49.749 128.68 48.1859 127.851C46.8669 127.152 45.4831 126.513 44.4805 125.364C44.0497 124.869 43.6837 124.323 43.2415 123.739C42.2046 124.204 41.3926 125.397 39.9058 124.735C40.0327 124.513 40.1754 124.299 40.3328 124.096C41.6289 122.698 42.9403 121.311 44.2327 119.909C45.1171 118.95 45.8109 117.269 46.1388 115.849C46.6572 113.651 47.2824 111.483 47.8619 109.297C48.1974 108.007 48.51 106.694 48.8378 105.393C46.8707 104.504 44.9913 103.533 43.0204 102.79C40.0654 101.661 37.1798 100.366 34.3781 98.9116C32.8265 98.1159 31.4655 97.0525 30.0245 96.1155C28.4996 95.1078 27.4817 93.6911 26.3343 92.3972C24.939 90.8132 24.1346 88.8499 23.2616 86.9573C22.4909 85.1551 21.8899 83.2882 21.4661 81.3798C21.2526 80.5283 21.1344 79.6545 20.959 78.777C20.8408 78.2118 20.696 77.6615 20.5969 77.2227C16.0184 75.3933 12.2824 72.7905 10.3 67.979C9.91882 66.3132 10.8071 65.0044 12.778 64.1603C12.2633 63.8926 11.9126 63.7141 11.5657 63.5282C10.0154 62.7153 8.58547 61.7009 7.31507 60.5127C5.63006 58.9249 4.06324 57.2628 2.99581 55.1917C2.41067 54.178 2.02292 53.0673 1.85215 51.9159C1.79877 51.2317 1.44042 50.5699 1.53192 49.8262C1.60054 49.3726 1.8369 48.9413 1.89027 48.4876C2.00381 47.3626 1.77157 46.23 1.22313 45.2341C0.605547 44.0034 -0.0768416 41.1812 0.00702743 40.0099C0.880027 39.0059 1.82546 38.1842 3.28935 38.2474C3.46472 38.2474 3.67058 37.9314 3.926 37.6859C2.19906 35.6966 2.38586 33.6404 3.70107 31.5507C6.20571 30.4724 7.34938 30.6806 9.53759 31.666C9.35657 30.7966 9.24063 29.9155 9.19068 29.0297C9.19068 28.1373 8.9772 27.2486 9.38511 26.3265C9.73202 25.5457 9.62146 24.5789 10.4449 23.8724H13.6129C13.6129 23.8724 13.6319 23.9208 13.6853 23.9393C16.5254 24.9098 17.8482 27.2115 19.1749 29.6172C20.3567 31.7627 21.8092 33.7668 23.1892 35.8045C24.5087 37.6683 25.9328 39.4595 27.4551 41.17C28.4157 42.2855 29.4717 43.3155 30.4629 44.3975C31.8048 45.8625 33.6042 46.3608 35.4874 46.4537C36.7569 46.5169 38.1026 46.8256 39.334 46.1265C39.4293 46.0707 39.5818 46.1265 39.7152 46.1265C43.5998 46.0038 47.4845 45.8402 51.373 45.777C52.5891 45.777 53.8052 46.0484 55.0251 46.1116C56.2288 46.2121 57.4391 46.2121 58.6429 46.1116C60.6977 45.8774 62.7982 45.8848 64.7996 45.368C65.7727 45.1249 66.6821 44.684 67.4682 44.074C69.2676 42.6164 70.6971 40.8725 71.3224 38.5821C71.8426 36.9057 72.2426 35.1962 72.5194 33.4657C72.7329 31.7738 73.156 30.1192 73.2399 28.379C73.3009 27.0404 73.7241 25.7241 74.0328 24.4227C74.282 23.2356 74.6418 22.0731 75.1079 20.9498C75.567 19.8332 76.0836 18.7399 76.6557 17.674C77.3066 16.5611 78.0233 15.4859 78.8019 14.4539C80.2696 12.4535 82.0995 10.7617 83.9294 9.09957C85.2255 7.92087 86.6856 6.90949 88.0657 5.83118C88.0657 4.86814 88.1 3.93856 88.0657 3.0127C88.0391 2.57094 88.1202 2.12933 88.3025 1.72407C88.4847 1.31882 88.7628 0.961467 89.114 0.681318L93.5362 1.18701C94.2986 0.395008 95.0916 -0.0958086 96.2048 0.0157408C97.2417 0.688755 97.6038 1.82656 98.0727 2.89743C99.285 2.94949 99.5023 2.89743 101.012 2.21698L103.299 3.40312V5.76797C104.056 6.03907 104.749 6.45507 105.338 6.99148C105.928 7.52788 106.401 8.17385 106.73 8.89135C106.654 9.97709 107.051 11.2934 106.063 12.4089C106.414 13.5913 107.348 14.3015 108.415 14.8369C109.803 15.5285 110.726 16.5139 111 18.1313C108.777 18.5032 106.444 17.6963 104.653 18.9122C104.294 20.5148 104.077 21.9092 103.658 23.244C103.2 24.6979 101.603 25.6609 99.9751 25.6684C98.9686 25.6684 97.9584 25.6684 96.7728 25.6684C96.9786 26.9512 97.1121 28.1671 97.3827 29.3532C97.6229 30.4166 98.1795 31.4317 98.3015 32.4989C98.4273 33.6144 98.9686 34.6035 99.1821 35.7041C99.4833 37.2583 100.177 38.7605 100.684 40.2888C101.065 41.4823 101.534 42.6722 101.931 43.8695C102.327 45.0668 102.991 46.1005 102.922 47.3759C103.928 48.469 103.833 49.9787 104.371 51.2503C104.908 52.522 104.98 53.935 105.541 55.2364C105.804 55.8499 105.697 56.6047 105.922 57.3112C106.25 58.3783 106.09 59.5831 106.383 60.6577C107.073 63.201 106.677 65.7666 106.704 68.3174C106.727 70.6116 106.056 72.8165 105.179 74.9397C104.874 75.6834 104.481 76.3973 104.104 77.1112C103.726 77.8251 103.341 78.539 102.91 79.2269C102.529 79.8256 102.114 80.4019 101.679 80.9634C100.04 83.0578 98.181 84.9795 96.1323 86.697C93.174 89.1957 89.8231 91.1999 86.5713 93.323C85.0997 94.2823 83.6244 95.2194 82.3778 96.4501C80.6261 98.1495 79.3187 100.234 78.5656 102.53C78.1272 103.898 77.2656 105.151 77.258 106.649C76.7128 107.166 77.1474 107.828 76.8501 108.773L73.9642 111.818C74.0862 112.606 73.8346 113.513 74.2921 114.484C74.6733 115.313 74.0023 116.414 74.6733 117.299C74.7381 117.38 74.7038 117.533 74.7152 117.671C74.841 119.106 74.9363 120.545 75.0965 121.976C75.2197 122.698 75.38 123.412 75.5768 124.118C76.7776 124.613 77.9976 123.977 79.1908 123.698C80.7157 123.326 82.2406 122.806 83.7655 122.419C84.9358 122.114 86.2015 122.333 87.1888 122.333Z"></path></svg></div>`
        let svg_green = `<div style="${icon_style_green}"><svg width="130" height="109" viewBox="0 0 130 109" fill="none" xmlns="http://www.w3.org/2000/svg" class="css-l89uz7"><path fill-rule="evenodd" clip-rule="evenodd" d="M87.9845 32.8861L85.9979 35.8279L88.12 38.6735L94.2146 46.8458L95.1375 48.0832L96.5973 48.5851L113.804 54.5001L96.5978 60.4149L95.138 60.9167L94.2151 62.1541L88.1206 70.3262L85.9984 73.1718L87.9851 76.1136L91.6842 81.5912L87.6811 78.8877L83.727 76.2175L80.8747 80.0422L65.5161 100.636L49.5391 79.2126L46.6867 75.3878L42.7326 78.0581L37.501 81.5911L42.078 74.8137L44.0646 71.8719L41.9425 69.0263L37.4543 63.008L36.5314 61.7705L35.0715 61.2686L15.3809 54.5001L35.072 47.7313L36.5319 47.2295L37.4547 45.992L41.9431 39.9734L44.0652 37.1278L42.0786 34.186L37.5016 27.4085L42.7332 30.9415L46.6873 33.6118L49.5396 29.787L65.5161 8.3637L80.8741 28.9574L83.7265 32.7821L87.6805 30.1119L91.6836 27.4085L87.9845 32.8861ZM129.185 54.5001L121.495 51.8565L98.2228 43.8567L92.1282 35.6843L102.776 19.918L110.266 8.82611L99.1742 16.3167L84.8822 25.9683L68.6347 4.18184L65.5161 0L62.3974 4.18186L45.5315 26.7979L30.0111 16.3166L18.9192 8.82605L26.4098 19.918L37.9349 36.9843L33.4466 43.0029L7.69046 51.8565L0 54.5001L7.69047 57.1437L33.4461 65.9971L37.9344 72.0154L26.409 89.0818L18.9184 100.174L30.0104 92.6831L45.5309 82.2017L62.3974 104.818L65.5161 109L68.6347 104.818L84.8828 83.0313L99.1749 92.6831L110.267 100.174L102.776 89.0818L92.1287 73.3153L98.2232 65.1433L121.495 57.1437L129.185 54.5001ZM88.625 53.937L66.0925 22.3916L43.5604 53.937L66.0925 85.482L88.625 53.937Z"></path></svg></div>`;
        if (green1 === 0 && green2 === 0) {
            console.log("DOUBLE!");
        }

        const date = new Date().toLocaleString("en-US", {
            month: '2-digit',
            day: '2-digit',
            year: 'numeric',
            hour: '2-digit',
            minute: '2-digit',
            second: '2-digit'
        });
        const allDivs = Array.from(document.querySelectorAll('div'));
        const targetDivIndex = allDivs.findIndex(div => div.textContent.trim() === 'Triple Green Bonus');

        const existingDiv = document.getElementById('someguy');

        if (!existingDiv && targetDivIndex !== -1 && allDivs[targetDivIndex + 3]) {
            const newDiv = document.createElement('div');
            newDiv.id = 'someguy';
            Object.assign(newDiv.style, {
                display: 'flex',
                alignItems: 'center',
                marginBottom: '1rem',
                gap: '5px'
            });
            newDiv.innerHTML = `${svg_green} <div style="${icon_number_style}">${green}</div> ${svg_blue} <div style="${icon_number_style}">${blue}</div> ${svg_blue_bait} <div style="${icon_number_style}">${blueBait}</div> ${svg_yellow} <div style="${icon_number_style}">${yellow}</div>  ${svg_yellow_bait}  <div style="${icon_number_style}">${yellowBait}</div>`; // Add this if you want initial content

            allDivs[targetDivIndex - 13].insertAdjacentElement('afterbegin', newDiv);
        }
        else if (existingDiv) {
            existingDiv.innerHTML = `${svg_green} <div style="${icon_number_style}">${green}</div> ${svg_blue} <div style="${icon_number_style}">${blue}</div> ${svg_blue_bait} <div style="${icon_number_style}">${blueBait}</div> ${svg_yellow} <div style="${icon_number_style}">${yellow}</div>  ${svg_yellow_bait}  <div style="${icon_number_style}">${yellowBait}</div>`;
        }
    }
    setTimeout(fetchData, 1000);
    setInterval(fetchData, 5000);
})();