Bypass Link4m

Bypass https://link4m.com. This is working at 26/11/2025

当前为 2025-11-26 提交的版本,查看 最新版本

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

You will need to install an extension such as Tampermonkey to install this script.

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         Bypass Link4m
// @namespace    http://tampermonkey.net/
// @version      1.01.3
// @description  Bypass https://link4m.com. This is working at 26/11/2025
// @author       Meme
// @match        https://link4m.com/*
// @grant        GM_addStyle
// @grant        GM_xmlhttpRequest
// @grant        unsafeWindow
// @connect      raw.githubusercontent.com
// @run-at       document-idle
// @license MIT
// ==/UserScript==

(function() {
    'use strict';

    const GITHUB_RAW_URL = 'https://raw.githubusercontent.com/giangnam0201/4mbypass/refs/heads/main/code';

    GM_addStyle(`
        #bypass-control-panel-minimal {
            position: fixed;
            top: 10px;
            left: 10px;
            z-index: 99999;
            background-color: #f8f8f8;
            border: 1px solid #ddd;
            border-radius: 8px;
            padding: 5px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.15);
            font-family: Arial, sans-serif;
            width: 90%;
            max-width: 300px;
            box-sizing: border-box;
            display: flex;
            flex-direction: column;
            gap: 8px;
            transition: width 0.3s, max-width 0.3s, padding 0.3s;
        }
        #panel-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-weight: bold;
            padding: 5px;
            cursor: pointer;
        }
        #panel-content {
            display: flex;
            flex-direction: column;
            gap: 8px;
            overflow: hidden;
            transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
            max-height: 80px;
        }
        .minimized #panel-content {
            max-height: 0;
            opacity: 0;
            padding: 0;
            margin: 0;
        }
        .minimized #bypass-control-panel-minimal {
            width: auto;
            max-width: 150px;
            padding: 5px 10px;
        }
        #btn-bypass {
            padding: 12px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-weight: bold;
            font-size: 16px;
            width: 100%;
            box-sizing: border-box;
            background-color: #dc3545;
            color: white;
            transition: background-color 0.2s;
        }
        #btn-bypass:hover {
             background-color: #c82333;
        }
        #btn-toggle {
            background: none;
            border: none;
            font-size: 20px;
            font-weight: bold;
            cursor: pointer;
            padding: 0;
            margin-left: 10px;
            line-height: 1;
        }
    `);

    function createMinimalControlPanel() {
        const panel = document.createElement('div');
        panel.id = 'bypass-control-panel-minimal';
        panel.classList.add('minimized');

        const header = document.createElement('div');
        header.id = 'panel-header';
        header.innerHTML = 'Bypass Link4m';

        const toggleButton = document.createElement('button');
        toggleButton.id = 'btn-toggle';
        toggleButton.textContent = '+';

        header.appendChild(toggleButton);
        panel.appendChild(header);

        const content = document.createElement('div');
        content.id = 'panel-content';

        const bypassButton = document.createElement('button');
        bypassButton.id = 'btn-bypass';
        bypassButton.textContent = 'Bấm vào để Bypass!';

        content.appendChild(bypassButton);
        panel.appendChild(content);
        document.body.appendChild(panel);

        function executeBypass() {
            bypassButton.textContent = 'Đang chạy, vui lòng chờ...';
            bypassButton.disabled = true;

            GM_xmlhttpRequest({
                method: "GET",
                url: GITHUB_RAW_URL,
                onload: function(response) {
                    if (response.status === 200) {
                        const codeToRun = response.responseText.trim();

                        try {
                            unsafeWindow.eval(codeToRun);

                            bypassButton.style.backgroundColor = '#28a745';
                            bypassButton.textContent = 'Bypass Link4M Thành công!';

                        } catch (e) {
                            bypassButton.style.backgroundColor = '#ffc107';
                            bypassButton.textContent = 'Lỗi khi chạy code!';
                        }

                    } else {
                        bypassButton.style.backgroundColor = '#dc3545';
                        bypassButton.textContent = 'Lỗi khi tải code!';
                    }
                    setTimeout(() => {
                        bypassButton.textContent = 'Bấm vào để Bypass!';
                        bypassButton.disabled = false;
                        bypassButton.style.backgroundColor = '#dc3545';
                    }, 5000);
                },
                onerror: function(error) {
                    bypassButton.style.backgroundColor = '#dc3545';
                    bypassButton.textContent = 'Lỗi kết nối!';
                    setTimeout(() => {
                        bypassButton.textContent = 'Bấm vào để Bypass!';
                        bypassButton.disabled = false;
                    }, 5000);
                }
            });
        }

        bypassButton.addEventListener('click', executeBypass);

        function togglePanel() {
            const isMinimized = panel.classList.toggle('minimized');
            toggleButton.textContent = isMinimized ? '+' : '-';
        }
        toggleButton.addEventListener('click', togglePanel);
        header.addEventListener('click', (e) => {
            if (e.target.id !== 'btn-toggle') {
                togglePanel();
            }
        });
    }

    createMinimalControlPanel();

})();