P4ft Jul 6, 2020 @ 11:45pm
I can't remove my profile badge. Help!
Since they released the new steam update, there are many errors in the case that when I leave a game and I want to talk to my friend, the steam tab does not open, I have to start the game so that the wse menu appears and what I do not like is that I can't remove my profile badge
< >
Showing 1-15 of 16 comments
MalikQayum Jul 7, 2020 @ 2:37am 
Setting the Favorite / Featured Badge back to none.
go to: https://store.steampowered.com/points/shop or https://steamcommunity.com/my/edit/info
open dev tools (chrome press f12)
paste the below code snippet.

var access_token = $J("[data-loyaltystore]").data("loyaltystore").webapi_token; var badgeid = 0; SetFavoriteFeaturedBadge(access_token, badgeid); function SetFavoriteFeaturedBadge(access_token, badgeid) { $J.post( 'https://api.steampowered.com/IPlayerService/SetFavoriteBadge/v1?', { access_token: access_token, badgeid: badgeid }); }

https://steamcommunity.com/sharedfiles/filedetails/?id=2241771269
Last edited by MalikQayum; Apr 14, 2023 @ 12:50am
かぐや Jul 7, 2020 @ 3:57am 
Originally posted by MalikQayum:
Setting the Favorite / Featured Badge back to none.
go to: https://store.steampowered.com/points/shop or https://steamcommunity.com/my/edit/info
open dev tools (chrome press f12)
paste the below code snippet.

var access_token = ""; var badgeid = 0; if (window.location.href.indexOf("steampowered") > -1) { access_token = $J("[data-loyaltystore]").data("loyaltystore").webapi_token; } else if(window.location.href.indexOf("steamcommunity") > -1) { access_token = JSON.parse($J("#profile_edit_config").attr("data-profile-edit")).webapi_token; SetFavoriteFeaturedBadge(access_token, badgeid); } else { console.log("go to: https://store.steampowered.com/points/shop or https://steamcommunity.com/my/edit/info"); SetFavoriteFeaturedBadge(access_token, badgeid); } function SetFavoriteFeaturedBadge(access_token, badgeid) { $J.post( 'https://api.steampowered.com/IPlayerService/SetFavoriteBadge/v1?', { access_token: access_token, badgeid: badgeid }); }

Wow! This actually worked. Thank you!
edit: I don't use Chrome. This works on other browsers as well.
Last edited by かぐや; Jul 7, 2020 @ 3:58am
localambience Jul 7, 2020 @ 3:57am 
Originally posted by MalikQayum:
Setting the Favorite / Featured Badge back to none.
go to: https://store.steampowered.com/points/shop or https://steamcommunity.com/my/edit/info
open dev tools (chrome press f12)
paste the below code snippet.

var access_token = ""; var badgeid = 0; if (window.location.href.indexOf("steampowered") > -1) { access_token = $J("[data-loyaltystore]").data("loyaltystore").webapi_token; } else if(window.location.href.indexOf("steamcommunity") > -1) { access_token = JSON.parse($J("#profile_edit_config").attr("data-profile-edit")).webapi_token; SetFavoriteFeaturedBadge(access_token, badgeid); } else { console.log("go to: https://store.steampowered.com/points/shop or https://steamcommunity.com/my/edit/info"); SetFavoriteFeaturedBadge(access_token, badgeid); } function SetFavoriteFeaturedBadge(access_token, badgeid) { $J.post( 'https://api.steampowered.com/IPlayerService/SetFavoriteBadge/v1?', { access_token: access_token, badgeid: badgeid }); }
This works, go to https://steamcommunity.com/my/edit/info and copy the code into console (press f12). Thanks to @MalikQayum for this fix
tanjil Sep 7, 2020 @ 3:08am 
Originally posted by MalikQayum:
Setting the Favorite / Featured Badge back to none.
go to: https://store.steampowered.com/points/shop or https://steamcommunity.com/my/edit/info
open dev tools (chrome press f12)
paste the below code snippet.

var access_token = ""; var badgeid = 0; if (window.location.href.indexOf("steampowered") > -1) { access_token = $J("[data-loyaltystore]").data("loyaltystore").webapi_token; } else if(window.location.href.indexOf("steamcommunity") > -1) { access_token = JSON.parse($J("#profile_edit_config").attr("data-profile-edit")).webapi_token; SetFavoriteFeaturedBadge(access_token, badgeid); } else { console.log("go to: https://store.steampowered.com/points/shop or https://steamcommunity.com/my/edit/info"); SetFavoriteFeaturedBadge(access_token, badgeid); } function SetFavoriteFeaturedBadge(access_token, badgeid) { $J.post( 'https://api.steampowered.com/IPlayerService/SetFavoriteBadge/v1?', { access_token: access_token, badgeid: badgeid }); }
Thanks a lot
Zyks Sep 16, 2020 @ 1:43am 
Originally posted by MalikQayum:
Setting the Favorite / Featured Badge back to none.
go to: https://store.steampowered.com/points/shop or https://steamcommunity.com/my/edit/info
open dev tools (chrome press f12)
paste the below code snippet.

var access_token = ""; var badgeid = 0; if (window.location.href.indexOf("steampowered") > -1) { access_token = $J("[data-loyaltystore]").data("loyaltystore").webapi_token; } else if(window.location.href.indexOf("steamcommunity") > -1) { access_token = JSON.parse($J("#profile_edit_config").attr("data-profile-edit")).webapi_token; SetFavoriteFeaturedBadge(access_token, badgeid); } else { console.log("go to: https://store.steampowered.com/points/shop or https://steamcommunity.com/my/edit/info"); SetFavoriteFeaturedBadge(access_token, badgeid); } function SetFavoriteFeaturedBadge(access_token, badgeid) { $J.post( 'https://api.steampowered.com/IPlayerService/SetFavoriteBadge/v1?', { access_token: access_token, badgeid: badgeid }); }
Thanks
ykyihwfwyd Sep 17, 2020 @ 5:22am 
Originally posted by MalikQayum:
Setting the Favorite / Featured Badge back to none.
go to: https://store.steampowered.com/points/shop or https://steamcommunity.com/my/edit/info
open dev tools (chrome press f12)
paste the below code snippet.

var access_token = ""; var badgeid = 0; if (window.location.href.indexOf("steampowered") > -1) { access_token = $J("[data-loyaltystore]").data("loyaltystore").webapi_token; } else if(window.location.href.indexOf("steamcommunity") > -1) { access_token = JSON.parse($J("#profile_edit_config").attr("data-profile-edit")).webapi_token; SetFavoriteFeaturedBadge(access_token, badgeid); } else { console.log("go to: https://store.steampowered.com/points/shop or https://steamcommunity.com/my/edit/info"); SetFavoriteFeaturedBadge(access_token, badgeid); } function SetFavoriteFeaturedBadge(access_token, badgeid) { $J.post( 'https://api.steampowered.com/IPlayerService/SetFavoriteBadge/v1?', { access_token: access_token, badgeid: badgeid }); }

♥♥♥♥♥♥♥ legend thankyou so much
Rush Dec 4, 2020 @ 9:27pm 
Originally posted by MalikQayum:
Setting the Favorite / Featured Badge back to none.
go to: https://store.steampowered.com/points/shop or https://steamcommunity.com/my/edit/info
open dev tools (chrome press f12)
paste the below code snippet.

var access_token = ""; var badgeid = 0; if (window.location.href.indexOf("steampowered") > -1) { access_token = $J("[data-loyaltystore]").data("loyaltystore").webapi_token; } else if(window.location.href.indexOf("steamcommunity") > -1) { access_token = JSON.parse($J("#profile_edit_config").attr("data-profile-edit")).webapi_token; SetFavoriteFeaturedBadge(access_token, badgeid); } else { console.log("go to: https://store.steampowered.com/points/shop or https://steamcommunity.com/my/edit/info"); SetFavoriteFeaturedBadge(access_token, badgeid); } function SetFavoriteFeaturedBadge(access_token, badgeid) { $J.post( 'https://api.steampowered.com/IPlayerService/SetFavoriteBadge/v1?', { access_token: access_token, badgeid: badgeid }); }
Thank you, It worked
woz Jan 10, 2021 @ 2:41am 
Originally posted by MalikQayum:
Setting the Favorite / Featured Badge back to none.
go to: https://store.steampowered.com/points/shop or https://steamcommunity.com/my/edit/info
open dev tools (chrome press f12)
paste the below code snippet.

var access_token = ""; var badgeid = 0; if (window.location.href.indexOf("steampowered") > -1) { access_token = $J("[data-loyaltystore]").data("loyaltystore").webapi_token; } else if(window.location.href.indexOf("steamcommunity") > -1) { access_token = JSON.parse($J("#profile_edit_config").attr("data-profile-edit")).webapi_token; SetFavoriteFeaturedBadge(access_token, badgeid); } else { console.log("go to: https://store.steampowered.com/points/shop or https://steamcommunity.com/my/edit/info"); SetFavoriteFeaturedBadge(access_token, badgeid); } function SetFavoriteFeaturedBadge(access_token, badgeid) { $J.post( 'https://api.steampowered.com/IPlayerService/SetFavoriteBadge/v1?', { access_token: access_token, badgeid: badgeid }); }
thank you, it worked been searching for this for a while now )
w; May 4, 2021 @ 1:44pm 
bumping this old thread and saying THANKS.
Abel Apr 13, 2023 @ 6:17am 
Hello, I have a problem, when i put this command, he responding me with this:

https://imgur.com/a/ZxLWQZM

Originally posted by MalikQayum:
Setting the Favorite / Featured Badge back to none.
go to: https://store.steampowered.com/points/shop or https://steamcommunity.com/my/edit/info
open dev tools (chrome press f12)
paste the below code snippet.

var access_token = ""; var badgeid = 0; if (window.location.href.indexOf("steampowered") > -1) { access_token = $J("[data-loyaltystore]").data("loyaltystore").webapi_token; } else if(window.location.href.indexOf("steamcommunity") > -1) { access_token = JSON.parse($J("#profile_edit_config").attr("data-profile-edit")).webapi_token; SetFavoriteFeaturedBadge(access_token, badgeid); } else { console.log("go to: https://store.steampowered.com/points/shop or https://steamcommunity.com/my/edit/info"); SetFavoriteFeaturedBadge(access_token, badgeid); } function SetFavoriteFeaturedBadge(access_token, badgeid) { $J.post( 'https://api.steampowered.com/IPlayerService/SetFavoriteBadge/v1?', { access_token: access_token, badgeid: badgeid }); }

https://steamcommunity.com/sharedfiles/filedetails/?id=2241771269
P4ft Apr 13, 2023 @ 8:58am 
Originally posted by Slendy:
Hello, I have a problem, when i put this command, he responding me with this:

https://imgur.com/a/ZxLWQZM

Originally posted by MalikQayum:
Setting the Favorite / Featured Badge back to none.
go to: https://store.steampowered.com/points/shop or https://steamcommunity.com/my/edit/info
open dev tools (chrome press f12)
paste the below code snippet.

var access_token = ""; var badgeid = 0; if (window.location.href.indexOf("steampowered") > -1) { access_token = $J("[data-loyaltystore]").data("loyaltystore").webapi_token; } else if(window.location.href.indexOf("steamcommunity") > -1) { access_token = JSON.parse($J("#profile_edit_config").attr("data-profile-edit")).webapi_token; SetFavoriteFeaturedBadge(access_token, badgeid); } else { console.log("go to: https://store.steampowered.com/points/shop or https://steamcommunity.com/my/edit/info"); SetFavoriteFeaturedBadge(access_token, badgeid); } function SetFavoriteFeaturedBadge(access_token, badgeid) { $J.post( 'https://api.steampowered.com/IPlayerService/SetFavoriteBadge/v1?', { access_token: access_token, badgeid: badgeid }); }

https://steamcommunity.com/sharedfiles/filedetails/?id=2241771269





https://steamcommunity.com/sharedfiles/filedetails/?id=2947375220
Abel Apr 13, 2023 @ 12:18pm 
Ye, I resolved the problem with this video:

https://www.youtube.com/watch?v=lyAcznaYDsg

:steamhappy:
MalikQayum Apr 14, 2023 @ 12:49am 
here is a proper fix:

var access_token = $J("[data-loyaltystore]").data("loyaltystore").webapi_token; var badgeid = 0; SetFavoriteFeaturedBadge(access_token, badgeid); function SetFavoriteFeaturedBadge(access_token, badgeid) { $J.post( 'https://api.steampowered.com/IPlayerService/SetFavoriteBadge/v1?', { access_token: access_token, badgeid: badgeid }); }

they have removed the access token from the elements attribute so it can no longer be accessed that way.
JSON.parse($J("#profile_edit_config").attr("data-profile-edit")).webapi_token;

however it can be accessed the same way it does from the store page.
$J("[data-loyaltystore]").data("loyaltystore").webapi_token;

so we can just set the access_token from the beginning now.

I have also updated the the initial post.
Last edited by MalikQayum; Apr 14, 2023 @ 12:51am
SpaceRabbit May 28, 2023 @ 7:20pm 
Thanks
Garth52 Aug 31, 2023 @ 10:24pm 
Works as of 08/31/23

Thanks!
< >
Showing 1-15 of 16 comments
Per page: 1530 50

Date Posted: Jul 6, 2020 @ 11:45pm
Posts: 16