[Premium] Shortlink Maker

Enhances functionality on various shortlink sites

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

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         [Premium] Shortlink Maker
// @namespace    https://greasyfork.org/users/1162863
// @version      1.0.4
// @description  Enhances functionality on various shortlink sites
// @author       Andrewblood
// @match        *://*/*
// @icon         https://coinfinity.top/favicon.ico
// @grant        none
// @license      Copyright Andrewblood
// ==/UserScript==
/*
For some sites you need UBlock Origin with this filter settings on the picture


Sites in this Shortlink Maker included:
 
Ouo: ouo.io
link1s: link1s.com
clik.pw: pwrpa.cc
DS8: movies.dutchycorp.space, tech.dutchycorp.space, dutchycorp.ovh/sh
DS Pr: dutchycorp.space/shp2
DS Smart: anime.dutchycorp.space, dutchycorp.space/shp-smart
1sNet: anhdep24.com, link1s.net
ShrkEarn: tii.la, blogtechh.com
FC: fc-lc.xyz, tmail.io
Pkr: jameeltips.us/blog2
CLK: oko.sh, oii.io
1Bit: 1bit.space, 1bitspace.com
Tmearn: blogmado.com
ClicksFly: healthfirstweb.com, vocalley.com, clk.wiki, mythvista.com
ShrinkMe: shrinkme.pro, themezon.net, shrinke.me
Cuty + Exe.io: exeo.app
Namai: namaidani.com
LinkRex: autodime.com, linx.cc
Tox: surflink.tech, coincroco.com, sox.link
NamaiNet: namaidani.net
Usa: theconomy.me, financenube.com, financeandinsurance.xyz
LinkHives + UrlHives: mcrypto.club
Mitly: mitly.us, sonjuegosgratis.com
Kiddy: kiddyshort.com
InsFly: tech5s.co, ez4mods.com, ez4short.com, howifx.com, insfly.pw
Mgnet: mgnet.xyz
Clock: clockads.in
 
*/
(function() {
    'use strict';
 
    // Debugging-Hinweis: Logge, dass das Skript gestartet wurde
    console.log('Shortlinker started.');
 
    // 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
        ],
        // 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 }, // without Verify 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: "#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: 10000 },
        ],
        // 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 },
            { selector: "1sNet", delay: 3000 },
        ],
        "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
        "clockads.in": [
            { selector: "body > div.container > div > div > div > div:nth-child(5) > a", 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) {
                    setTimeout(function() {
                        waitForCaptchaResponse(button);
                    }, button.delay);
                });
            }
        }
    }
 
    function isElementVisible(element) {
        return element.offsetParent !== null;
    }
 
    function waitForCaptchaResponse(button) {
        const currentURL = window.location.href;
 
        const captchaElements = [
            { element: document.querySelector("#captcha-turnstile") },
            { element: document.querySelector("#recaptcha, #captchaShortlink, .g-recaptcha") },
            { element: document.querySelector("#captcha-hcaptcha, .h-captcha") }
        ];
 
        const visibleCaptcha = captchaElements.find(captcha => captcha.element && captcha.element.offsetParent !== null);
 
        if (button.selector === "#invisibleCaptchaShortlink" && !currentURL.includes("link1s.com") && !currentURL.includes("pwrpa.cc") && !currentURL.includes("shrinkme.pro") && !currentURL.includes("namaidani") || currentURL.includes("exeo.app")) {
            console.log('Captcha excluded for this site/element.');
            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() {
 
        // Rufe die Funktion waitForCaptchaResponse auf, wenn die definierte Seite in der URL vorhanden ist, um auf Captcha-Responses zu warten
        for (var domain in buttonsToClick) {
            if (window.location.href.includes(domain)) {
                console.log('Domain matched:', domain);
                clickButtons();
                break; // Beende die Schleife, sobald die passende Domain gefunden wurde
            }
        }
    });
 
})();