TrendLinkler Bypass Enhanced

TrendLinkler sitesinde bekleme süresini atlayarak direkt link erişimi sağlar

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         TrendLinkler Bypass Enhanced
// @name:tr      TrendLinkler Bypass Enhanced
// @name:en      TrendLinkler Bypass Enhanced
// @namespace    https://memoryhackers.org/members/durmuk.1871708/
// @version      1.6
// @description  TrendLinkler sitesinde bekleme süresini atlayarak direkt link erişimi sağlar
// @description:tr  TrendLinkler sitesinde bekleme süresini atlayarak direkt link erişimi sağlar
// @description:en  Bypasses the countdown timer on TrendLinkler to provide direct link access
// @author       Durmuş Karaca
// @license      MIT
// @match        *://*.trendlinkler.com/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    function waitForElement(selector) {
        return new Promise(resolve => {
            if (document.querySelector(selector)) {
                return resolve(document.querySelector(selector));
            }

            const observer = new MutationObserver(mutations => {
                if (document.querySelector(selector)) {
                    observer.disconnect();
                    resolve(document.querySelector(selector));
                }
            });

            observer.observe(document.body, {
                childList: true,
                subtree: true
            });
        });
    }

    async function skipCountdown() {
        try {
            // Countdown elementini bekle
            const countdownElement = await waitForElement('.countdown');
            
            if (countdownElement) {
                // Sayfadaki linki bul
                const linkElement = document.querySelector('a.btn-primary[href^="https://"]');
                
                if (linkElement) {
                    // Önce bypass butonunu oluştur
                    const bypassButton = document.createElement('div');
                    bypassButton.className = 'text-center p-2';
                    bypassButton.innerHTML = `
                        <button class="btn btn-warning btn-lg fs-6 text-decoration-none col-12">
                            <strong>Bypassed Link</strong> 
                            <i class="fa fa-spinner fa-spin" aria-hidden="true"></i>
                        </button>
                    `;
                    
                    // Bypass butonunu countdown'dan önce ekle
                    countdownElement.parentNode.insertBefore(bypassButton, countdownElement);
                    
                    // 1 saniye sonra countdown'u kaldır ve gerçek linki göster
                    setTimeout(() => {
                        // Countdown'u kaldır
                        countdownElement.style.display = 'none';
                        
                        // Bypass butonunu güncelle
                        bypassButton.innerHTML = `
                            <a href="${linkElement.href}" 
                               class="btn btn-success btn-lg fs-6 text-decoration-none col-12" 
                               target="_blank" 
                               rel="nofollow">
                                <strong>Linke Git</strong> 
                                <i class="fa fa-external-link" aria-hidden="true"></i>
                            </a>
                        `;
                        
                        // Complete class'ına sahip elementi göster
                        const completeElement = document.querySelector('.complete');
                        if (completeElement) {
                            completeElement.style.display = 'block';
                        }
                    }, 1000);
                }
            }
        } catch (error) {
            console.log('Element bulunamadı veya bir hata oluştu:', error);
        }
    }

    // Sayfa yüklendiğinde çalıştır
    if (document.readyState === 'loading') {
        document.addEventListener('DOMContentLoaded', skipCountdown);
    } else {
        skipCountdown();
    }
})();