Proxy Açma

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

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

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

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 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);
        }
    }
})();