Greasy Fork

Greasy Fork is available in English.

[Premium] Shortlink Maker

Enhances functionality on over 40 shorteners and over 80 sites

当前为 2024-03-12 提交的版本,查看 最新版本

// ==UserScript==
// @name         [Premium] Shortlink Maker
// @namespace    http://greasyfork.icu/users/1162863
// @version      1.1
// @description  Enhances functionality on over 40 shorteners and over 80 sites
// @author       Andrewblood
// @icon         https://coinfinity.top/favicon.ico

// @match        *://*.coinfinity.top/*

// @match        *.1bit.space/*
// @match        *.1bitspace.com/*
// @match        *.120898.xyz/*
// @match        *.131989.xyz/*
// @match        *.141989.xyz/*
// @match        *.151989.xyz/*
// @match        *.161989.xyz/*
// @match        *.adbitfly.com/*
// @match        *.anhdep24.com/*
// @match        *.anywho-com.com/*
// @match        *.askpaccosi.com/*
// @match        *.atglinks.com/*
// @match        *.autodime.com/*
// @match        *.birdurls.com/*
// @match        *.blogmado.com/*
// @match        *.blogsward.com/*
// @match        *.blogtechh.com/*
// @match        *.c2g.at/*
// @match        *.clk.wiki/*
// @match        *.coincroco.com/*
// @match        *.cryptoad.org/*
// @match        *.cutlink.xyz/*
// @match        *.deltabtc.xyz/*
// @match        *.djqunjab.in/*
// @match        *.dutchycorp.space/*
// @match        *.ez4mods.com/*
// @match        *.ez4short.com/*
// @match        *.exeo.app/*
// @match        *.faho.us/*
// @match        *.fc-lc.xyz/*
// @match        *.financerites.com/*
// @match        *.financenube.com/*
// @match        *.foodxor.com/*
// @match        *.healthfirstweb.com/*
// @match        *.hit-films.com/*
// @match        *.horoscop.info/*
// @match        *.howifx.com/*
// @match        *.illink.net/*
// @match        *.infonerd.org/*
// @match        *.insfly.pw/*
// @match        *.jameeltips.us/*
// @match        *.kiddyshort.com/*
// @match        *.linx.cc/*
// @match        *.link1s.com/*
// @match        *.link1s.net/*
// @match        *.mcafee-com.com/*
// @match        *.mcrypto.club/*
// @match        *.mealcold.com/*
// @match        *.mitly.us/*
// @match        *.mythvista.com/*
// @match        *.namaidani.com/*
// @match        *.namaidani.net/*
// @match        *.neverdims.com/*
// @match        *.oii.io/*
// @match        *.oko.sh/*
// @match        *.owllink.net/*
// @match        *.pwrpa.cc/*
// @match        *.sevenjournals.com/*
// @match        *.shrinkme.link/*
// @match        *.shrinkme.pro/*
// @match        *.shrinke.me/*
// @match        *.sinonimos.de/*
// @match        *.sox.link/*
// @match        *.sonjuegosgratis.com/*
// @match        *.surflink.tech/*
// @match        *.tech5s.co/*
// @match        *.theconomy.me/*
// @match        *.themezon.net/*
// @match        *.tii.la/*
// @match        *.tmail.io/*
// @match        *.trendzilla.it/*
// @match        *.urlcut.pro/*
// @match        *.vocalley.com/*
// @match        *.writeprofit.org/*

// @grant        GM_addStyle
// @license      Copyright Andrewblood
// ==/UserScript==
/*

Sites in this Shortlink Maker included:

1. Ouo: ouo.io, ouo.press
2. link1s: link1s.com, link1s.net
3. clik.pw: pwrpa.cc
4. DS8: movies.dutchycorp.space, tech.dutchycorp.space
5. DS Pr: dutchycorp.space/shp2
6. DS Smart: anime.dutchycorp.space, dutchycorp.space/shp-smart
7. 1sNet: anhdep24.com
8. ShrkEarn: tii.la, blogtechh.com
9. FC: fc-lc.xyz, tmail.io
10. Pkr: jameeltips.us/blog2
11. CLK: oko.sh
12. Oii: oii.io
13. 1Bit: 1bit.space, 1bitspace.com
14. Tmearn: blogmado.com
15. ClicksFly: healthfirstweb.com, vocalley.com, clk.wiki, mythvista.com
16. ShrinkMe: shrinkme.pro, themezon.net, shrinke.me
17. Cuty + Exe.io: exeo.app
18. Namai: namaidani.com, namaidani.net
19. LinkRex: autodime.com, linx.cc
20. Tox: surflink.tech, coincroco.com, sox.link
21. Usa: theconomy.me, financenube.com, financeandinsurance.xyz
22. LinkHives + UrlHives: mcrypto.club
23. Mitly: mitly.us, sonjuegosgratis.com
24. Kiddy: kiddyshort.com
25. InsFly: tech5s.co, ez4mods.com, ez4short.com, howifx.com, insfly.pw
26. Mgnet: mgnet.xyz
27. Clock: financerites.com, clockads.in
28. Bird: sevenjournals.com, hit-films.com, birdurls.com
29. Owlink: owllink.net
30. Illink: illink.net
31. Shortit: shortit.pw
32. Shrk: mcafee-com.com, blog.anywho-com.com, blog.shrinkme.link
33. Faho: 141989.xyz, horoscop.info, faho.us
34. Adbitfly: blogsward.com, adbitfly.com
35. CutLink: 151989.xyz, cryptoad.org, cutlink.xyz, writeprofit.org
36. RevCut: askpaccosi.com
37. ATG: djqunjab.in, foodxor.com, mealcold.com, atglinks.com
38. UrlCut: 131989.xyz, trendzilla.it, urlcut.pro
39. C2G: 120898.xyz, c2g.at, sinonimos.de
40. Bitad: 161989.xyz, infonerd.org, bitad.org
41. Hate: neverdims.com, bit4me.info, deltabtc.xyz, hatelink.me

*/
(function() {
    'use strict';

    if (window.location.href.includes('coinfinity.top/faucetlist')) {
        var isShortlinkMakerOverlayOpened = false;
        var ShortlinkMakerButton = createShortlinkMakerButton('Shortlink Maker');

        function createShortlinkMakerButton(text) {
            var ShortlinkMakerButton = document.createElement('button');
            ShortlinkMakerButton.innerHTML = text;
            ShortlinkMakerButton.classList.add('shortlinkmaker-button');
            ShortlinkMakerButton.addEventListener('click', function() {
                if (!isShortlinkMakerOverlayOpened) {
                    openShortlinkMakerOverlay();
                    isShortlinkMakerOverlayOpened = true;
                }
            });
            return ShortlinkMakerButton;
        }

        function openShortlinkMakerOverlay() {
            var ShortlinkMakerOverlay = createShortlinkMakerOverlay();
            var ShortlinkMakerOverlayContent = createShortlinkMakerOverlayContent();
            ShortlinkMakerOverlay.appendChild(ShortlinkMakerOverlayContent);
            document.body.appendChild(ShortlinkMakerOverlay);
            ShortlinkMakerOverlay.addEventListener('click', function(event) {
                if (event.target === ShortlinkMakerOverlay) {
                    ShortlinkMakerOverlay.remove();
                    isShortlinkMakerOverlayOpened = false;
                }
            });
        }

        function createShortlinkMakerOverlay() {
            var ShortlinkMakerOverlay = document.createElement('div');
            ShortlinkMakerOverlay.classList.add('shortlinkmaker-overlay');
            return ShortlinkMakerOverlay;
        }

        function createShortlinkMakerOverlayContent() {
            var ShortlinkMakerOverlayContent = document.createElement('div');
            ShortlinkMakerOverlayContent.classList.add('shortlinkmaker-overlay-content');
            ShortlinkMakerOverlayContent.innerHTML = `
                <h2>Sites that can handle Shortlink Maker</h2>

            `;
            return ShortlinkMakerOverlayContent;
        }

        document.body.appendChild(ShortlinkMakerButton);

        GM_addStyle(`
            .shortlinkmaker-button {
                position: fixed;
                bottom: 20px;
                left: calc(55% - 20px);
                transform: translateX(50%);
                padding: 10px;
                background: blue;
                color: white;
                border: none;
                border-radius: 5px;
                cursor: pointer;
                z-index: 9999;
            }

            .shortlinkmaker-overlay {
                position: fixed;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background: rgba(0, 0, 0, 0.7);
                z-index: 9998;
                display: flex;
                align-items: center;
                justify-content: center;
            }

            .shortlinkmaker-overlay-content {
                width: 95%;
                height: 80%;
                background: white;
                padding: 20px;
                overflow: auto;
                text-align: center;
            }
        `);
    }

    var ShortlinkMakerStatus = document.createElement('div');
    document.body.appendChild(ShortlinkMakerStatus);

    ShortlinkMakerStatus.classList.add('shortlinkmaker-status');
    GM_addStyle(`
                .shortlinkmaker-status {
                position: fixed;
                top: 110px;
                right: 10px;
                z-index: 9999; }
                `);

    function setShortlinkMakerStatus(html, color) {
        if (color === 'green') {
            ShortlinkMakerStatus.style.color = 'green';
        } else if (color === 'red') {
            ShortlinkMakerStatus.style.color = 'red';
        } else {
            ShortlinkMakerStatus.style.color = 'black';
        }
        ShortlinkMakerStatus.innerHTML = html;
    }

    setShortlinkMakerStatus('<p><b>[Premium] Shortlink Maker</b> is running.</p>', 'green');

    // Definiere die Buttons, die geklickt werden sollen
    var buttonsToClick = {
        // Ouo
        "ouo.io": [
            { selector: "#btn-main", delay: 3000 }, // Get Link
            { selector: "#btn-main", delay: 5000 }, // Get Link
            { selector: "#btn-main", delay: 8000 }, // Get Link
            { selector: "#btn-main", delay: 10000 }, // Get Link
        ],
        "ouo.press": [
            { selector: "#btn-main", delay: 3000 }, // Get Link
            { selector: "#btn-main", delay: 5000 }, // Get Link
            { selector: "#btn-main", delay: 8000 }, // Get Link
            { selector: "#btn-main", delay: 10000 }, // Get Link
        ],
        // link1s
        "link1s.com": [
            { selector: "#invisibleCaptchaShortlink", delay: 3000 },
            { selector: ".container > div > div > div > div:nth-child(7) > a", delay: 15000 }, // Get Link
        ],
        // clik.pw
        "pwrpa.cc": [
            { selector: "#invisibleCaptchaShortlink", delay: 3000 },
            { selector: ".container > div > div > div > div:nth-child(8) > a", delay: 13000 }, // Get Link
        ],
        // DS8
        "movies.dutchycorp.space": [
            { selector: "#proceed > font > b", delay: 3000 }, // Click 1
            { selector: "#cl1 > center > a > font > b", delay: 5000 }, // Click 2
        ],
        "tech.dutchycorp.space": [
            { selector: "#proceed > font > b", delay: 3000 }, // Click 1
            { selector: "#cl1 > center > a > font > b", delay: 5000 }, // Click 2
        ],
        "dutchycorp.ovh/sh": [
            { selector: "#click-btn > font", delay: 3000 }, // Click 1
            { selector: "#click-btn > font", delay: 5000, index: 1 }, // Click 2
            { selector: "#invisibleCaptchaShortlink", delay: 10000 }, // Verify Captcha
            { selector: "#mainNav > div > div > div:nth-child(3) > div > div > a", delay: 25000 }, // Skip Ad
        ],
        // DS Pr
        "dutchycorp.space/shp2": [
            { selector: "#invisibleCaptchaShortlink", delay: 3000 }, // show Captcha
            { selector: ".container > div > div > div > div:nth-child(11) > a", delay: 13000 }, // Get Link
        ],
        // DS Smart
        "anime.dutchycorp.space": [
            { selector: "#proceed > font > b", delay: 3000 }, // Click 1
            { selector: "#cl1 > center > a > font > b", delay: 5000 }, // Click 2
        ],
        "dutchycorp.space/shp-smart": [
            { selector: ".container > div > div > div > div:nth-child(11) > a", delay: 13000 }, // Get Link
        ],
        // 1sNet
        "anhdep24.com": [
            { selector: "#link1s", delay: 17000 }, // Continue 1
            { selector: "#btn6", delay: 17000 }, // Continue 2
        ],
        "link1s.net": [
            { selector: ".container > div > div > div > div:nth-child(3) > a", delay: 6000 }, // Get Link
        ],
        // ShrkEarn
        "tii.la": [
            { selector: "#continue", delay: 3000 },
            { selector: ".container > div > div > div > center > div > a", delay: 13000 }, // Get Link
        ],
        "blogtechh.com": [
            { selector: "#scroll > a > p", delay: 5000 },
            { selector: "#getlink", delay: 8000 }, // geht nicht
            { selector: "#getlink", delay: 10000 }, // geht nicht
        ],
        // FC
        "fc-lc.xyz": [
            { selector: "#invisibleCaptchaShortlink", delay: 3000 },
        ],
        "tmail.io": [
            { selector: "#next", delay: 3000 }, // Start Timer
            { selector: "#scroll", delay: 20000 }, // Continue
            { selector: "#glink", delay: 23000 }, // Continue
            { selector: "#surl", delay: 13000 }, // Get Link
        ],
        // Pkr
        "jameeltips.us/blog2": [
            { selector: "#form-continue > button", delay: 3000 }, // Continue
            { selector: "#invisibleCaptchaShortlink", delay: 3000 }, // Verify Captcha
            { selector: ".container > div > div > div > div:nth-child(5) > a", delay: 6000 }, // Get Link
        ],
        // CLK
        "oko.sh": [
            { selector: "#link-view > button", delay: 3000 }, // Continue + Verify Captcha
            { selector: "#td-outer-wrap > div > div.container > div > div > div > center > div > a", delay: 13000 }, // Get Link
        ],
        // Oii
        "oii.io": [
            { selector: "#invisibleCaptchaShortlink", delay: 6000 },
        ],
        // 1Bit
        "1bit.space": [
            { selector: 'button.button.is-rounded.is-fullwidth.is-outlined.is-link.rubberBand.animated.button-element-verification', delay: 3000 }, // Verify Captcha + Load Timer
            { selector: "#xbhefcx", delay: 20000 },
            { selector: "#container-element-verification > div > button", delay: 20000 },
        ],
        "1bitspace.com": [
            { selector: "#continue-button", delay: 3000 },
        ],
        // Tmearn
        "blogmado.com": [
            { selector: "#lview > form > center:nth-child(5) > button", delay: 3000 }, // Verify Captcha
            { selector: "#main-content > div.text-center > a > a > button", delay: 6000 }, // Get Link
        ],
        // ClicksFly
        "healthfirstweb.com": [
            { selector: "#scroll > a > p", delay: 3000 },
            { selector: "#getlink", delay: 5000 },
        ],
        "vocalley.com": [
            { selector: "#scroll > a > p", delay: 3000 },
            { selector: "#getlink", delay: 5000 },
        ],
        "clk.wiki": [
            { selector: "button.btn.btn-primary.btn-captcha", delay: 3000 }, // Verify Captcha
            { selector: "#sads > div > div:nth-child(3) > div > div > a", delay: 20000 }, // Skip Ad
            { selector: "#gads > a", delay: 8000 },
        ],
        "mythvista.com": [
            { selector: "#scroll > a > p", delay: 3000 },
            { selector: "#getlink", delay: 5000 },
        ],
        // ShrinkMe
        "shrinkme.pro": [
            { selector: "#invisibleCaptchaShortlink", delay: 3000 }, // Verify Captcha
        ],
        "themezon.net": [
            { selector: "#btn2", delay: 3000 },
        ],
        "shrinke.me": [
            { selector: "#btnDiv > a", delay: 16000 }, // Get Link
        ],
        // Cuty + Exe.io
        "exeo.app": [
            { selector: "#submit-button", delay: 3000 },
            { selector: "#submit-button", delay: 12000 },
            { selector: "#before-captcha > div.flex > button", delay: 3000 },
            { selector: "#invisibleCaptchaShortlink", delay: 3000 },
            { selector: "body > main > div > div > div.procced > a", delay: 15000 },
        ],
        // Namai
        "namaidani.com": [
            { selector: "#invisibleCaptchaShortlink", delay: 3000 }, // Verify Captcha
            { selector: "#mainNav > div > div > div:nth-child(3) > div > div > a", delay: 35000 }, // Skip Ad
        ],
        // LinkRex
        "autodime.com": [
            { selector: "#button1", delay: 13000 },
            { selector: "#showw > center > a", delay: 20000 },
        ],
        "linx.cc": [
            { selector: "body > div.container > div > div > div > div:nth-child(5) > a", delay: 8000 }, // Get Link
        ],
        // Tox
        "surflink.tech": [
            { selector: "#fexkominhidden2 > center > button", delay: 18000 },
        ],
        "coincroco.com": [
            { selector: "#fexkominhidden2 > center > button", delay: 13000 },
        ],
        "sox.link": [
            { selector: "body > center > section > div > div > div > div.hero_contents__buttons > a", delay: 8000 }, // Get Link
        ],
        // NamaiNet
        "namaidani.net": [
            { selector: "#invisibleCaptchaShortlink", delay: 3000 },
            { selector: "#mainNav > div > div > div:nth-child(3) > div > div > a", delay: 35000 }, // Skip Ad
        ],
        // Usa
        "theconomy.me": [
            { selector: "#wpsafelinkhuman > button", delay: 3000 },
            { selector: "#wpsafe-generate > a > button", delay: 3000 }, // Get Link
            { selector: "body > section > div > div > div > div > center > div:nth-child(4) > a", delay: 13000 },
        ],
        "financenube.com": [
            { selector: "#wpsafelinkhuman > button", delay: 3000 },
            { selector: "#wpsafe-generate > a > button", delay: 13000 },
            { selector: "#wpsafe-link > a > button", delay: 18000 },
        ],
        "financeandinsurance.xyz": [
            { selector: "#wpsafelinkhuman > button", delay: 3000 },
            { selector: "#wpsafe-link > a > button", delay: 13000 },
        ],
        // LinkHives + UrlHives
        "mcrypto.club": [
            { selector: "#wpsafelinkhuman > button", delay: 3000 },
            { selector: "#wpsafe-generate > a > button", delay: 3000 },
            { selector: "#golink > a > button", delay: 8000 },
            { selector: "#nextlink > a > button", delay: 8000 },
        ],
        // Mitly
        "mitly.us": [
            { selector: "body > div.container > div > div > div.box-main > div.row > div:nth-child(2) > form > button", delay: 3000 },
            { selector: "body > div.container > div > div > div > div:nth-child(5) > a", delay: 10000 },
        ],
        "sonjuegosgratis.com": [
            { selector: "#shortContainer > button", delay: 8000 },
        ],
        // Kiddy
        "kiddyshort.com": [
            { selector: "body > div.container > div > div > div > strong > strong > div.row > div:nth-child(2) > form > button", delay: 3000 },
            { selector: "body > div.container > div > div > div > strong > div:nth-child(1) > a", delay: 18000 },
        ],
        // InsFly
        "tech5s.co": [
            { selector: "#go_d", delay: 3000 },
            { selector: "#go_d2", delay: 5000 },
        ],
        "ez4mods.com": [
            { selector: "#go_d", delay: 3000 },
        ],
        "ez4short.com": [
            { selector: "body > section.rates > div > div > section.link > div > div > div:nth-child(2) > div > div.flex.flex_2 > div.procced > a", delay: 6000 },
        ],
        "howifx.com": [
            { selector: "#scroll > a > p", delay: 3000 },
            { selector: "#getlink", delay: 5000 },
        ],
        "insfly.pw": [
            { selector: "body > div.container > div > div > div > div:nth-child(5) > a", delay: 8000 },
        ],
        // Mgnet
        "mgnet.xyz": [
            { selector: ".button-element-verification", delay: 3000 },
            { selector: "#container-element-verification > div > button", delay: 10000 },
        ],
        // Clock
        "financerites.com": [
            { selector: "#getlink", delay: 5000 },
        ],
        "clockads.in": [
            { selector: "body > div.container > div > div > div > div:nth-child(5) > a", delay: 8000 },
        ],
        // Bird
        "sevenjournals.com": [
            { selector: "#btn6", delay: 3000 },
        ],
        "hit-films.com": [
            { selector: "#btn6", delay: 3000 },
        ],
        "birdurls.com": [
            { selector: "body > div.container > div > div > div > div:nth-child(12) > a", delay: 13000 },
        ],
        // Owlink
        "owllink.net": [
            { selector: "body > div.container > div > div > div > div:nth-child(12) > a", delay: 13000 },
        ],
        // Illink
        "illink.net": [
            { selector: "body > div.container > div > div > div > div:nth-child(12) > a", delay: 18000 },
        ],
        // Shortit
        "shortit.pw": [
            { selector: "#btn1", delay: 3000 },
            { selector: "#captchabox > div > div > div.p-1.m-1.text-center > a", delay: 5000 },
            { selector: "#btn2", delay: 25000 },
        ],
        // Shrk
        "mcafee-com.com": [
            { selector: "#yuidea", delay: 3000 },
            { selector: "#btn6", delay: 3000 },
            { selector: "#btn6", delay: 5000 },
            { selector: "#btn6", delay: 10000 },
            { selector: "#humanbutton", delay: 25000 },
            { selector: "#wpsafe-link > a > button", delay: 5000 },
        ],
        "blog.anywho-com.com": [
            { selector: "#humanbutton", delay: 45000 },
            { selector: "#wpsafe-link > a > button", delay: 40000 },
        ],
        "blog.shrinkme.link": [
            { selector: "#invisibleCaptchaShortlink", delay: 3000 },
            { selector: "body > section > div > div > div > div > div:nth-child(4) > a", delay: 8000 },
        ],
        // Faho
        "141989.xyz": [
            { selector: "body > div.container > form > button > b", delay: 3000 },
        ],
        "horoscop.info": [
            { selector: "#wpsafelinkhuman", delay: 10000 },
            { selector: "#wpsafe-generate > a", delay: 34000 },
            { selector: "#wpsafelinkhuman", delay: 38000 },
            { selector: "#wpsafe-link3 > a", delay: 38000 },
        ],
        "faho.us": [
            { selector: "#content > div > a", delay: 8000 },
        ],
        // Adbitfly
        "blogsward.com": [
            { selector: "#wpsafe-generate > button", delay: 25000 },
            { selector: "#wpsafe-link > a > button", delay: 28000 },
        ],
        "adbitfly.com": [
            { selector: "body > section > div > div > div > div > div:nth-child(10) > a", delay: 8000 },
        ],
        // CutLink
        "151989.xyz": [
            { selector: "body > div.container > form > button > b", delay: 3000 },
        ],
        "cryptoad.org": [
            { selector: "#wpsafelinkhuman", delay: 3000 },
            { selector: "#wpsafelinkhuman", delay: 15000 },
            { selector: "#wpsafe-generate > a", delay: 33000 },
            { selector: "#wpsafelinkhuman", delay: 38000 },
            { selector: "#wpsafe-link > a", delay: 38000 },
        ],
        "cutlink.xyz": [
            { selector: "#content > div > a", delay: 8000 },
        ],
        "writeprofit.org": [
            { selector: "#wpsafelinkhuman", delay: 3000 },
            { selector: "#wpsafe-generate > a", delay: 23000 },
            { selector: "#wpsafelinkhuman", delay: 28000 },
            { selector: "#wpsafe-link > a", delay: 28000 },
        ],
        // RevCut
        "askpaccosi.com": [
            { selector: "#content-wrapper > div > div > div > div > div > div > form > button", delay: 3000 },
            { selector: "#wpsafe-generate > a > button", delay: 3000 },
        ],
        // ATG
        "djqunjab.in": [
            { selector: "#wpsafelinkhuman > img", delay: 3000 },
            { selector: "#wpsafe-generate > a > img", delay: 3000 },
            { selector: "#wpsafe-link > a > img", delay: 5000 },
        ],
        "foodxor.com": [
            { selector: "#wpsafe-link > a > img", delay: 3000 },
        ],
        "mealcold.com": [
            { selector: "#wpsafe-link > a > img", delay: 3000 },
        ],
        "atglinks.com": [
            { selector: "#invisibleCaptchaShortlink", delay: 3000 },
            { selector: "body > section > div > div > div > div > div:nth-child(7) > a", delay: 20000 },
        ],
        // UrlCut
        "131989.xyz": [
            { selector: "body > div > form > button > b", delay: 3000 },
        ],
        "trendzilla.it": [
            { selector: "#human", delay: 15000 },
            { selector: "#wpsafe-generate > a", delay: 34000 },
            { selector: "#human", delay: 38000 },
            { selector: "#wpsafe-link3 > a", delay: 38000 },
        ],
        "urlcut.pro": [
            { selector: "#content > div > a", delay: 8000 },
        ],
        // C2G
        "120898.xyz": [
            { selector: "body > div.container > form > button", delay: 3000 },
        ],
        "c2g.at": [
            { selector: "body > div.container > div > div > div > div > a", delay: 8000 },
        ],
        "sinonimos.de": [
            { selector: "#cbt", delay: 18000 },
        ],
        // Bitad
        "161989.xyz": [
            { selector: "body > div.container > form > button > b", delay: 3000 },
        ],
        "infonerd.org": [
            { selector: "#wpsafelinkhuman", delay: 3000 },
            { selector: "#wpsafelinkhuman", delay: 15000 },
            { selector: "#wpsafe-generate > a", delay: 33000 },
            { selector: "#wpsafelinkhuman", delay: 38000 },
            { selector: "#wpsafe-link > a", delay: 38000 },
        ],
        "bitad.org": [
            { selector: "#content > div > a", delay: 8000 },
        ],
        // Hate
        "neverdims.com": [
            { selector: "#content-wrapper > div > div > div > div > div > div > form > button", delay: 3000 },
            { selector: "#wpsafe-link > a:nth-child(2) > button", delay: 3000 },
        ],
        "bit4me.info": [
            { selector: "#wpsafe-link > a:nth-child(2) > button", delay: 3000 },
        ],
        "deltabtc.xyz": [
            { selector: "#wpsafe-link > a:nth-child(2) > button", delay: 3000 },
        ],
        "hatelink.me": [
            { selector: "body > div.container > div > div > div.box-main > div.row > div:nth-child(2) > form > button", delay: 3000 },
            { selector: "body > div.container > div > div > div > div:nth-child(4) > a", delay: 13000 },
        ],
        // sthuzwerfrtzutzhxt
        "sthuzwerfrtzutzhxt": [
            { selector: "sthuzwerfrtzutzhxt", delay: 3000 },
            { selector: "sthuzwerfrtzutzhxt", delay: 5000 },
            { selector: "sthuzwerfrtzutzhxt", delay: 8000 },
        ],
        // sthuzwerfrtzutzhxt
        "sthuzwerfrtzutzhxt": [
            { selector: "sthuzwerfrtzutzhxt", delay: 3000 },
            { selector: "sthuzwerfrtzutzhxt", delay: 5000 },
            { selector: "sthuzwerfrtzutzhxt", delay: 8000 },
        ],
        // sthuzwerfrtzutzhxt
        "sthuzwerfrtzutzhxt": [
            { selector: "sthuzwerfrtzutzhxt", delay: 3000 },
            { selector: "sthuzwerfrtzutzhxt", delay: 5000 },
            { selector: "sthuzwerfrtzutzhxt", delay: 8000 },
        ],
        // sthuzwerfrtzutzhxt
        "sthuzwerfrtzutzhxt": [
            { selector: "sthuzwerfrtzutzhxt", delay: 3000 },
            { selector: "sthuzwerfrtzutzhxt", delay: 5000 },
            { selector: "sthuzwerfrtzutzhxt", delay: 8000 },
        ],
        // sthuzwerfrtzutzhxt
        "sthuzwerfrtzutzhxt": [
            { selector: "sthuzwerfrtzutzhxt", delay: 3000 },
            { selector: "sthuzwerfrtzutzhxt", delay: 5000 },
            { selector: "sthuzwerfrtzutzhxt", delay: 8000 },
        ],
        // sthuzwerfrtzutzhxt
        "sthuzwerfrtzutzhxt": [
            { selector: "sthuzwerfrtzutzhxt", delay: 3000 },
            { selector: "sthuzwerfrtzutzhxt", delay: 5000 },
            { selector: "sthuzwerfrtzutzhxt", delay: 8000 },
        ],
        // sthuzwerfrtzutzhxt
        "sthuzwerfrtzutzhxt": [
            { selector: "sthuzwerfrtzutzhxt", delay: 3000 },
            { selector: "sthuzwerfrtzutzhxt", delay: 5000 },
            { selector: "sthuzwerfrtzutzhxt", delay: 8000 },
        ],
        // sthuzwerfrtzutzhxt
        "sthuzwerfrtzutzhxt": [
            { selector: "sthuzwerfrtzutzhxt", delay: 3000 },
            { selector: "sthuzwerfrtzutzhxt", delay: 5000 },
            { selector: "sthuzwerfrtzutzhxt", delay: 8000 },
        ],
        // sthuzwerfrtzutzhxt
        "sthuzwerfrtzutzhxt": [
            { selector: "sthuzwerfrtzutzhxt", delay: 3000 },
            { selector: "sthuzwerfrtzutzhxt", delay: 5000 },
            { selector: "sthuzwerfrtzutzhxt", delay: 8000 },
        ],
    };

    function clickButtons() {
        var currentURL = window.location.href;

        for (var domain in buttonsToClick) {
            if (currentURL.includes(domain)) {
                console.log('Found matching domain: ' + domain);

                var buttons = buttonsToClick[domain];
                buttons.forEach(function(button, index) {
                    setTimeout(function() {
                        waitForCaptchaResponse(button);

                        if (index === buttons.length - 1) {
                            if (currentURL.includes("mcafee-com.com")) {
                                setTimeout(function() {
                                    window.close();
                                }, 3000);
                            } else {
                                console.log("Last button clicked reload in 1 minute.");
                                setTimeout(function() {
                                    location.reload();
                                }, 60000);
                            }
                        }
                    }, button.delay);
                });
            }
        }
    }

    function isElementVisible(element) {
        return element.offsetParent !== null;
    }

    function waitForCaptchaResponse(button) {

        const currentURL = window.location.href;

        const captchaElements = [
            { element: document.querySelector("#captcha-turnstile, #captcha-cloudflare") },
            { element: document.querySelector(".safelink-recatpcha, #recaptcha, #captchaShortlink, .g-recaptcha, #captcha_container") },
            { element: document.querySelector("#captcha-hcaptcha, .h-captcha") }
        ];

        const visibleCaptcha = captchaElements.find(captcha => captcha.element && captcha.element.offsetParent !== null);

        // || currentURL.includes("kgdfljuhfdogpädsejfvbgpük")
        if (currentURL.includes("dutchycorp.space/shp2") || currentURL.includes("oii.io") || currentURL.includes("fc-lc.xyz") || currentURL.includes("blog.anywho-com.com") || currentURL.includes("mcafee-com.com") || currentURL.includes("exeo.app")) {
            console.log('Captcha excluded for this site.');
            clickButton(button);
        } else if (visibleCaptcha) {
            console.log('Captcha found.');
            visibleCaptcha.response = document.querySelector('[name="cf-turnstile-response"], #g-recaptcha-response, [name="h-captcha-response"]');

            const interval = setInterval(() => {
                if (visibleCaptcha.response && visibleCaptcha.response.value && visibleCaptcha.response.value.length > 0) {
                    clearInterval(interval);
                    console.log('Captcha response received.');
                    clickButton(button);
                }
            }, 1000);
        } else {
            console.log('No Captcha found. Clicking button directly.');
            clickButton(button);
        }
    }

    function clickButton(button) {
        var elements;
        if (button.index !== undefined) {
            elements = document.querySelectorAll(button.selector);
        } else {
            elements = document.querySelector(button.selector);
        }

        if (elements) {
            var element = (button.index !== undefined) ? elements[button.index] : elements;
            if (isElementVisible(element)) {
                element.click();
                console.log('Button clicked:', button.selector);
            }
        }
    }

    window.addEventListener('load', function() {


        if (window.location.href.includes("autodime.com") && document.querySelector("#showw > center > a")) {
            console.log('Bypassed open new site in same tab.');
            document.querySelector("#showw > center > a").target = "_self"
        }

        // Clks
        if (window.location.href.includes("sinonimos.de") || window.location.href.includes("kenzo-flowertag.com") || window.location.href.includes("makeupguide.net") || window.location.href.includes("ineedskin.com") || window.location.href.includes("mdn.lol") || window.location.href.includes("homeculina.com") || window.location.href.includes("awgrow.com")){

            document.onclick = null;
            document.onmouseover = null;
            document.oncontextmenu = null;

            console.log('Clicking button by text.');

            var buttonTexts = [
                "CONTINUE (STEP 1/2)",
                "CONTINUE (STEP 2/2)",
                'CONTINUE (STEP 1/5)',
                'CONTINUE (STEP 2/5)',
                'CONTINUE (STEP 3/5)',
                'CONTINUE (STEP 4/5)',
                'CONTINUE (STEP 5/5)',
                'STEP 0/5',
                'STEP 1/5',
                'STEP 2/5',
                'STEP 3/5',
                'STEP 4/5',
                'STEP 5/5',
                'GO TO STEP2',
            ];

            setTimeout(function() {
                buttonTexts.forEach(function(buttonText) {
                    var buttons = document.querySelectorAll('*');
                    buttons.forEach(function(button) {
                        if (button.innerText === buttonText) {
                            button.click();
                        }
                    });
                });
            }, 20000);

        }

        for (var domain in buttonsToClick) {
            if (window.location.href.includes(domain)) {
                console.log('Domain matched:', domain);
                clickButtons();
                break;
            }
        }
    });

})();