Восстановление Стима

123

// ==UserScript==
// @name         Восстановление Стима
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  123
// @author       me
// @match        https://help.steampowered.com/*/wizard/HelpWithLoginInfoSelectAccount/*
// @match        https://help.steampowered.com/*/wizard/HelpWithLoginInfoReset/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=steampowered.com
// @require      https://code.jquery.com/jquery-3.6.0.min.js
// @grant        none
// @license MI
// ==/UserScript==

if(window.location.pathname.includes('HelpWithLoginInfoSelectAccount')){
    $('.account_select_row > .account_reset_column > a').each(function(){
        var id32 = parseInt($(this).attr('onclick').split(',')[1].replace(' ', ''));
        var id64 = '765' + (id32 + 61197960265728)
        $(this).parent('.account_reset_column').siblings('.account_profile_column').find('.player_name').html("<a href='https://steamcommunity.com/profiles/"+id64+"/' target='_blank'> "+$(this).parent('.account_reset_column').siblings('.account_profile_column').find('.player_name').text()+"</a>")
    });
}

if(window.location.pathname.includes('HelpWithLoginInfoReset')){
    var id32 = parseInt($('.wizard_content_wrapper > a').not('.help_header').attr('onclick').split(',')[1].replace(' ', ''));
    var id64 = '765' + (id32 + 61197960265728)
    $('.player_name').html("<a href='https://steamcommunity.com/profiles/"+id64+"/' target='_blank'> "+$('.player_name').text()+"</a>")
}