Greasy Fork

[Premium] Shortlink Maker

Enhances functionality on over 40 shorteners and over 80 sites

目前为 2024-03-13 提交的版本。查看 最新版本

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

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

// @match        *://*.120898.xyz/*
// @match        *://*.131989.xyz/*
// @match        *://*.141989.xyz/*
// @match        *://*.151989.xyz/*
// @match        *://*.161989.xyz/*
// @match        *://*.1bit.space/*
// @match        *://*.1bitspace.com/*
// @match        *://*.adbitfly.com/*
// @match        *://*.anhdep24.com/*
// @match        *://*.anywho-com.com/*
// @match        *://*.askpaccosi.com/*
// @match        *://*.atglinks.com/*
// @match        *://*.autodime.com/*
// @match        *://*.awgrow.com/*
// @match        *://*.birdurls.com/*
// @match        *://*.bit4me.info/*
// @match        *://*.bitad.org/*
// @match        *://*.blogmado.com/*
// @match        *://*.blogsward.com/*
// @match        *://*.blogtechh.com/*
// @match        *://*.c2g.at/*
// @match        *://*.clk.wiki/*
// @match        *://*.clockads.in/*
// @match        *://*.coincroco.com/*
// @match        *://*.cryptoad.org/*
// @match        *://*.cryptowidgets.net/*
// @match        *://*.cutlink.xyz/*
// @match        *://*.deltabtc.xyz/*
// @match        *://*.djqunjab.in/*
// @match        *://*.dutchycorp.ovh/*
// @match        *://*.dutchycorp.space/*
// @match        *://*.exeo.app/*
// @match        *://*.ez4mods.com/*
// @match        *://*.ez4short.com/*
// @match        *://*.faho.us/*
// @match        *://*.fc-lc.xyz/*
// @match        *://*.financeandinsurance.xyz/*
// @match        *://*.financenube.com/*
// @match        *://*.financerites.com/*
// @match        *://*.foodxor.com/*
// @match        *://*.hatelink.me/*
// @match        *://*.healthfirstweb.com/*
// @match        *://*.hit-films.com/*
// @match        *://*.homeculina.com/*
// @match        *://*.horoscop.info/*
// @match        *://*.howifx.com/*
// @match        *://*.illink.net/*
// @match        *://*.ineedskin.com/*
// @match        *://*.infonerd.org/*
// @match        *://*.insfly.pw/*
// @match        *://*.jameeltips.us/*
// @match        *://*.kenzo-flowertag.com/*
// @match        *://*.kiddyshort.com/*
// @match        *://*.lawyex.co/*
// @match        *://*.link1s.com/*
// @match        *://*.link1s.net/*
// @match        *://*.linx.cc/*
// @match        *://*.makeupguide.net/*
// @match        *://*.mcafee-com.com/*
// @match        *://*.mcrypto.club/*
// @match        *://*.mdn.lol/*
// @match        *://*.mealcold.com/*
// @match        *://*.mgnet.xyz/*
// @match        *://*.mitly.us/*
// @match        *://*.mythvista.com/*
// @match        *://*.namaidani.com/*
// @match        *://*.namaidani.net/*
// @match        *://*.neverdims.com/*
// @match        *://*.oii.io/*
// @match        *://*.oko.sh/*
// @match        *://*.ouo.io/*
// @match        *://*.ouo.press/*
// @match        *://*.owllink.net/*
// @match        *://*.pwrpa.cc/*
// @match        *://*.sevenjournals.com/*
// @match        *://*.shortit.pw/*
// @match        *://*.shrinke.me/*
// @match        *://*.shrinkme.link/*
// @match        *://*.shrinkme.site/*
// @match        *://*.shrinkme.pro/*
// @match        *://*.sinonimos.de/*
// @match        *://*.sonjuegosgratis.com/*
// @match        *://*.sox.link/*
// @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 included

1Bit: 1bit.space, 1bitspace.com
1sNet: anhdep24.com, link1s.net
ATG: djqunjab.in, foodxor.com, mealcold.com, atglinks.com
Adbitfly: blogsward.com, adbitfly.com
Bird: sevenjournals.com, hit-films.com, birdurls.com
Bitad: 161989.xyz, infonerd.org, bitad.org
C2G: 120898.xyz, c2g.at
CLK: oko.sh
ClicksFly: healthfirstweb.com, vocalley.com, clk.wiki, mythvista.com
Clks: sinonimos.de, kenzo-flowertag.com, makeupguide.net, ineedskin.com, mdn.lol, homeculina.com, awgrow.com, lawyex.co
Clock: financerites.com, clockads.in
CutLink: 151989.xyz, cryptoad.org, cutlink.xyz, writeprofit.org
Cuty + Exe.io: exeo.app
DS Pr: dutchycorp.space/shp2
DS Smart: anime.dutchycorp.space, dutchycorp.space/shp-smart
DS8: movies.dutchycorp.space, tech.dutchycorp.space, dutchycorp.ovh/sh
FC: fc-lc.xyz, tmail.io
Faho: 141989.xyz, horoscop.info, faho.us
Hate: neverdims.com, bit4me.info, deltabtc.xyz, hatelink.me
Illink: illink.net
InsFly: tech5s.co, ez4mods.com, ez4short.com, howifx.com, insfly.pw
Kiddy: kiddyshort.com
LinkHives + UrlHives: mcrypto.club
LinkRex: autodime.com, linx.cc
Mgnet: mgnet.xyz
Mitly: mitly.us, sonjuegosgratis.com
Namai: namaidani.com
NamaiNet: namaidani.net
Oii: oii.io
Ouo: ouo.io, ouo.press
Owlink: owllink.net
Pkr: jameeltips.us/blog2
RevCut: askpaccosi.com
Shortit: shortit.pw
ShrinkMe: shrinkme.pro, themezon.net, shrinke.me
Shrk: mcafee-com.com, blog.anywho-com.com, blog.shrinkme.link
ShrkEarn: tii.la, blogtechh.com
Tmearn: blogmado.com
Tox: surflink.tech, coincroco.com, sox.link
UrlCut: 131989.xyz, trendzilla.it, urlcut.pro
Usa: theconomy.me, financenube.com, financeandinsurance.xyz
clik.pw: pwrpa.cc
link1s: link1s.com


       var timer = document.querySelector("#count");
        var timerbtn = document.querySelector("#cbt");
        var basetimer = document.querySelector(".base-timer");
        var linkrextimer = document.querySelector("#wpsafe-time");

        if (timer && timer.innerText > 0) {
            setShortlinkMakerStatus("15 sec Timer is running. Wait until it finishes.");
            return;
        }
        if (timerbtn && timerbtn.innerText !== "Continue") {
            setShortlinkMakerStatus("Button-Timer is running. Wait until it finishes.");
            return;
        }
        if (basetimer && basetimer.innerText !== "0:00") {
            setShortlinkMakerStatus("0;00 baseTimer is running. Wait until it finishes.");
            return;
        }

        if (document.querySelector("body > pre") && document.querySelector("body > pre").innerText.includes("Bad Request")) {
            let lastURL = document.referrer
            window.location.href = lastURL
        }

        target.style!="undefined" ) target.style.cursor = "text";
document.removeAttribute('unselectable');
            document.onmousedown = null;
            document.ondragstart = null;
            document.onkeydown = null;
            document.onselectstart = null;
        var links = document.querySelectorAll('a');
        for (var i = 0; i < links.length; i++) {
            var link = links[i];
            link.setAttribute('target', '_self');
        }

        setTimeout(function() {
            location.reload();
        }, 180000);
*/
(function() {
    'use strict';

    window.alert = function() {
        console.log("Alert blocked")
    };
    window.confirm = function() {
        return false;
    };
    window.prompt = function() {
        return null;
    };

    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>Shortlink Maker</h2>
            <p>Sites included:</p><br>
			<p><b>1Bit:</b> 1bit.space, 1bitspace.com</p>
			<p><b>1sNet:</b> anhdep24.com, link1s.net</p>
			<p><b>ATG:</b> djqunjab.in, foodxor.com, mealcold.com, atglinks.com</p>
			<p><b>Adbitfly:</b> blogsward.com, adbitfly.com</p>
			<p><b>Bird:</b> sevenjournals.com, hit-films.com, birdurls.com</p>
			<p><b>Bitad:</b> 161989.xyz, infonerd.org, bitad.org</p>
			<p><b>C2G:</b> 120898.xyz, c2g.at</p>
			<p><b>CLK:</b> oko.sh</p>
			<p><b>ClicksFly:</b> healthfirstweb.com, vocalley.com, clk.wiki, mythvista.com</p>
			<p><b>Clks:</b> sinonimos.de, kenzo-flowertag.com, makeupguide.net, ineedskin.com, mdn.lol, homeculina.com, awgrow.com, lawyex.co</p>
			<p><b>Clock:</b> financerites.com, clockads.in</p>
			<p><b>CutLink:</b> 151989.xyz, cryptoad.org, cutlink.xyz, writeprofit.org</p>
			<p><b>Cuty + Exe.io:</b> exeo.app</p>
			<p><b>DS Pr:</b> dutchycorp.space/shp2</p>
			<p><b>DS Smart:</b> anime.dutchycorp.space, dutchycorp.space/shp-smart</p>
			<p><b>DS8:</b> movies.dutchycorp.space, tech.dutchycorp.space, dutchycorp.ovh/sh</p>
			<p><b>FC:</b> fc-lc.xyz, tmail.io</p>
			<p><b>Faho:</b> 141989.xyz, horoscop.info, faho.us</p>
			<p><b>Hate:</b> neverdims.com, bit4me.info, deltabtc.xyz, hatelink.me</p>
			<p><b>Illink:</b> illink.net</p>
			<p><b>InsFly:</b> tech5s.co, ez4mods.com, ez4short.com, howifx.com, insfly.pw</p>
			<p><b>Kiddy:</b> kiddyshort.com</p>
			<p><b>LinkHives + UrlHives:</b> mcrypto.club</p>
			<p><b>LinkRex:</b> autodime.com, linx.cc</p>
			<p><b>Mgnet:</b> mgnet.xyz</p>
			<p><b>Mitly:</b> mitly.us, sonjuegosgratis.com</p>
			<p><b>Namai:</b> namaidani.com</p>
			<p><b>NamaiNet:</b> namaidani.net</p>
			<p><b>Oii:</b> oii.io</p>
			<p><b>Ouo:</b> ouo.io, ouo.press</p>
			<p><b>Owlink:</b> owllink.net</p>
			<p><b>Pkr:</b> jameeltips.us/blog2</p>
			<p><b>RevCut:</b> askpaccosi.com</p>
			<p><b>Shortit:</b> shortit.pw</p>
			<p><b>ShrinkMe:</b> shrinkme.pro, themezon.net, shrinke.me</p>
			<p><b>Shrk:</b> mcafee-com.com, blog.anywho-com.com, blog.shrinkme.link</p>
			<p><b>ShrkEarn:</b> tii.la, blogtechh.com</p>
			<p><b>Tmearn:</b> blogmado.com</p>
			<p><b>Tox:</b> surflink.tech, coincroco.com, sox.link</p>
			<p><b>UrlCut:</b> 131989.xyz, trendzilla.it, urlcut.pro</p>
			<p><b>Usa:</b> theconomy.me, financenube.com, financeandinsurance.xyz</p>
			<p><b>clik.pw:</b> pwrpa.cc</p>
			<p><b>link1s:</b> link1s.com
            `;
            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 h2 {
                text-align: center !important;
                padding-bottom: 20px;
            }

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

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

    ShortlinkMakerStatus.classList.add('shortlinkmaker-status');
    GM_addStyle(`
                .shortlinkmaker-status {
                position: fixed;
                font-size: 20px !important;
                top: 110px;
                right: 20px;
                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
        ],
        "shrinkme.site": [
            { selector: "#invisibleCaptchaShortlink", delay: 3000 },
            { selector: "body > section > div > div > div > div > div:nth-child(4) > a", delay: 13000 },
        ],
        // 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: "#button1", delay: 15000 },
            { 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: 20000 },
            { 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 },
        ],
        // Bitad
        "161989.xyz": [
            { selector: "body > div.container > form > button > b", delay: 3000 },
        ],
        "infonerd.org": [
            { selector: "#wpsafelinkhuman", delay: 5000 },
            { 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 },
        ],
    };

    function getRandomNumber(min, max) {
        return Math.floor(Math.random() * (max - min) + min);
    }

    function randomDisplayNumber() {
        var screenWidth = window.innerWidth;
        var screenHeight = window.innerHeight;

        var randomX = getRandomNumber(0, screenWidth);
        var randomY = getRandomNumber(0, screenHeight);

        return { x: randomX, y: randomY };
    }

    function moveMouseTo(x, y) {
        var event = new MouseEvent('mousemove', {
            bubbles: true,
            cancelable: true,
            view: document.defaultView,
            clientX: x,
            clientY: y
        });
        document.dispatchEvent(event);
    }

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

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

                    if (index === buttons.length - 1) {
                        setShortlinkMakerStatus('<p><b>[Premium] Shortlink Maker</b> Last button clicked reload in 1 minute.</p>', 'green');
                        setTimeout(function() {
                            location.reload();
                        }, 60000);
                    }
                }, button.delay);
            });
        }
    }

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

    function waitForCaptchaResponse(button) {
        setShortlinkMakerStatus('<p><b>[Premium] Shortlink Maker:</b> Looking for Captcha.</p>', 'green');
        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") || 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")) {
            clickButton(button);
        } else if (visibleCaptcha) {
            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);
                    clickButton(button);
                }
            }, 1000);
        } else {
            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)) {
                setShortlinkMakerStatus('<p><b>[Premium] Shortlink Maker:</b> Click button - ' + element + '.</p>', 'green')
                var randomPosition = randomDisplayNumber();
                moveMouseTo(randomPosition.x, randomPosition.y);
                element.click();
            }
        }
    }

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


        if (window.location.href.includes("autodime.com")&& document.querySelector("#showw > center > a")) {
            setShortlinkMakerStatus('<p><b>[Premium] Shortlink Maker</b> Bypassed open new site in same tab.</p>', 'green')
            document.querySelector("#showw > center > a").target = "_self"
        }

        if (window.location.href.includes("mcafee-com.com")) {
            setTimeout(function() {
                window.close();
            }, 60000);
        }

        if (window.location.href.includes("blogtechh.com") || window.location.href.includes("blogsward") || window.location.href.includes("writeprofit") || window.location.href.includes("adbitfly")) {
            setShortlinkMakerStatus('<p><b>[Premium] Shortlink Maker</b> Bypass try of link.</p>', 'green')
            document.onclick = null;
            document.onmouseover = null;
            document.oncontextmenu = null;
            document.onmousedown = null;
            document.ondragstart = null;
            document.onkeydown = null;
            document.onselectstart = null;
            var element = document.querySelector('.post-template-default');

            if (element) {
                element.removeAttribute('unselectable');
                element.removeAttribute('itemscope');
                element.removeAttribute('itemtype');
                element.removeAttribute('style');
            }
        }

        // Clks
        if (window.location.href.includes("sinonimos.de") || window.location.href.includes("kenzo-flowertag.com") || window.location.href.includes("cryptowidgets.net") || window.location.href.includes("lawyex.co") || 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;

            setShortlinkMakerStatus('<p><b>[Premium] Shortlink Maker:</b> Clicking buttons for this site by text after delay.</p>', 'green')

            var buttonTextsAndDelays = {
                "CONTINUE (STEP 1/2)": 20000,
                "CONTINUE (STEP 2/2)": 20000,
                'CONTINUE (STEP 1/5)': 18000,
                'CONTINUE (STEP 2/5)': 18000,
                'CONTINUE (STEP 3/5)': 18000,
                'CONTINUE (STEP 4/5)': 18000,
                'CONTINUE (STEP 5/5)': 18000,
                'STEP 0/5': 20000,
                'STEP 1/5': 18000,
                'STEP 2/5': 18000,
                'STEP 3/5': 18000,
                'STEP 4/5': 18000,
                'STEP 5/5': 18000,
                'GO TO STEP2': 25000,
                'GO TO STEP3': 25000,
                'GO TO STEP4': 5000,
                'GO TO STEP5': 25000,
                'GO TO STEP6': 25000,
                'GO TO STEP7': 25000,
            };

            Object.entries(buttonTextsAndDelays).forEach(([buttonText, delay]) => {
                setTimeout(() => {
                    var buttons = document.querySelectorAll('*');
                    buttons.forEach(function(button) {
                        if (button.innerText === buttonText) {
                            button.click();
                        }
                    });
                }, delay);
            });
        }


        for (var domain in buttonsToClick) {
            if (window.location.href.includes(domain)) {
                setShortlinkMakerStatus('<p><b>[Premium] Shortlink Maker</b> ' + domain + ' found, start clicking buttons.</p>', 'green');
                clickButtons();
                break;
            }
        }
    });

})();