Hello, there is a code:
var url = "http://steamcommunity.com/id/foozzylalka";
$ .get (url, function (data) {
var hide = $ ('. persona_level', data) .size ();
if (hide> 0) {
var cs_go = $ ('div.game_info_cap a', data) .attr ('href'). split ('/') [4];
if (cs_go == "730") {
/ * accept *
} else {/ * block * /}
} else {/ * block * /}
$ ('# wrapper'). html (cs_go);
}); So, where / * accept * /, I need to somehow click on the button.
With the tab open, I did it through document:
document.getElementsByClassName('btn_profile_action:first').click();
And how to implement it through the request?
