spys.one proxy parser

Parse proxy data from spys.one page with free porxy checker

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

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

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

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

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

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

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         spys.one proxy parser
// @namespace    iquaridys:hideme-parser-proxy
// @version      1.0.2
// @description  Parse proxy data from spys.one page with free porxy checker
// @author       iquaridys
// @match        https://spys.one/*
// @grant        GM_registerMenuCommand
// @grant        GM_openInTab
// ==/UserScript==

(function () {
    'use strict';

    // Register menu command
    GM_registerMenuCommand('Parse Proxies', function () {
        let resultText = '';
        const elements = document.querySelectorAll('.spy14');

        // Parse elements with proxy info
        elements.forEach((element) => {
            if (element.innerText.includes(':')) {
                resultText += element.innerText + '\n';
            }
        });

        if (resultText) {
            // Open a new window and display the results
            const newWindow = window.open();
            newWindow.document.write(`
                <html>
                <head>
                    <style>
                        body {
                            font-family: Arial, sans-serif;
                            margin: 0;
                            background-color: #f4f4f4;
                            display: flex;
                            height: 100vh;
                        }
                        .container {
                            display: flex;
                            width: 100%;
                        }
                        .sidebar {
                            width: 30%;
                            background-color: #fff;
                            padding: 20px;
                            box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
                            overflow-y: auto;
                            height: 100%;
                        }
                        .content {
                            width: 70%;
                            padding: 20px;
                        }
                        iframe {
                            border: none;
                            width: 100%;
                            height: 100%;
                        }
                        pre {
                            white-space: pre-wrap;
                            word-wrap: break-word;
                            font-size: 12px;
                            color: #333;
                        }
                    </style>
                </head>
                <body>
                    <div class="container">
                        <div class="sidebar">
                            <pre>${resultText}</pre>
                        </div>
                        <div class="content">
                            <iframe src="https://proxychecker.infatica.io/"></iframe>
                        </div>
                    </div>
                </body>
                </html>
            `);
            newWindow.document.close();
        } else {
            alert('No proxies found on the page!');
        }
    });
})();