spys.one proxy parser

Parse proxy data from spys.one page

Od 07.12.2024.. Pogledajte najnovija verzija.

// ==UserScript==
// @name         spys.one proxy parser
// @namespace    iquaridys:hideme-parser-proxy
// @version      0.3
// @description  Parse proxy data from spys.one page
// @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 tab and display the results
            const newWindow = window.open();
            newWindow.document.write('<pre>' + resultText + '</pre>');
            newWindow.document.close();
        } else {
            alert('No proxies found on the page!');
        }
    });
})();