Proxy Açma

Mor bir menü oluşturur ve girilen Proxy sayısı kadar sayfa açar.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         Proxy Açma
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Mor bir menü oluşturur ve girilen Proxy sayısı kadar sayfa açar.
// @author       neo
// @match        https://gartic.io/*
// @grant        GM_openInTab
// ==/UserScript==

(function() {
    'use strict';

    // Mor menü oluşturuluyor
    const menuContainer = document.createElement('div');
    menuContainer.style.position = 'fixed';
    menuContainer.style.top = '10px';
    menuContainer.style.right = '10px';
    menuContainer.style.background = 'purple';
    menuContainer.style.padding = '10px';
    menuContainer.style.borderRadius = '5px';
    menuContainer.style.zIndex = '9999';

    // Proxy sayısı için giriş kutusu oluşturuluyor
    const proxyInput = document.createElement('input');
    proxyInput.type = 'text';
    proxyInput.placeholder = 'Proxy Sayısı';
    proxyInput.style.marginBottom = '1px';
    menuContainer.appendChild(proxyInput);

    // "Aç" düğmesi oluşturuluyor
    const openButton = document.createElement('button');
    openButton.textContent = 'Aç';
    openButton.style.background = 'white';
    openButton.style.padding = '5px';
    openButton.style.border = 'none';
    openButton.style.cursor = 'pointer';
    openButton.addEventListener('click', openPages);
    menuContainer.appendChild(openButton);

    document.body.appendChild(menuContainer);

    // "Aç" düğmesine tıklandığında çalışacak fonksiyon
    function openPages() {
        const proxyCount = parseInt(proxyInput.value, 10);
        if (isNaN(proxyCount) || proxyCount <= 0) {
            alert('Geçerli bir Proxy sayısı girin.');
            return;
        }

        // Proxy sayısı kadar sayfa açılıyor
        for (let i = 0; i < proxyCount; i++) {
            const url = 'https://cdn.blockaway.net/_tr/';
            GM_openInTab(url, false);
        }
    }
})();