Steam

Steam

Nedostatek hodnocení
Associate games to group using gameID
Vytvořil: Black Blade
This guide is has a simple code that will add a text box to a group that you can use to associate games to the group using ID (not using search)
This will allow to also add removed games to the group
   
Ocenit
Přidat do oblíbených
Oblíbeno
Odebrat z oblíbených
What is this script for?
This script was made in request from the forums:
https://gtm.steamproxy.vip/discussions/forum/10/3014556944201551106/

It will simply add a small text box (for the time the script run) that will allow you to associate a game to a group using its ID and without a need to search for it
This will allow adding games that were removed from Steam to the associate games list in the group (not all games work with this)
Setup (For Chrome)
For Chrome:
  1. Go to your group and enter the group admin edit window where you can add associate games
  2. Click F12 on your keyboard or Ctrl+Shift+I or Open the menu → More tools → Developer Tools
    this will open the Developer Tools area in the window
  3. At the bottom there you will see the console copy and paste the code into there and press enter
The Script (v1)
function addGameByID() { let GameToAdd = document.getElementById("associate_game_by_id").value; let CurrentAppIDs = GetCurrentGameAssociationList(); let AlreadySelected = false; for ( let i = 0; i < CurrentAppIDs.length; i++ ) { if ( CurrentAppIDs[i] == GameToAdd ) { AlreadySelected = true; break; } } if (!AlreadySelected) { $('group_associated_games_edit').insert( {bottom: Template_AssociatedGame.evaluate( {appid:GameToAdd, icon:"https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/fe/fef49e7fa7e1997310d705b2a6158ff8dc1cdfeb.jpg", name:GameToAdd, } ) } ); CurrentAppIDs.push( GameToAdd ); $('favorite_games').value = CurrentAppIDs.join( ',' ); } } group_associated_games_edit.innerHTML = `<br />` + `<div class="groupadmin_subarea">`+ `enter gameID of a game to associate it with your group`+ `<br>`+ `<div class="gray_bevel for_text_input">`+ `<input class="dynInput" type="text" name="associate_game_by_id" id="associate_game_by_id" placeholder="Game ID" size="45" value="">`+ `</div>`+ `<br>`+ `<button type="button" onclick="addGameByID()">Add Game</button>`+ `</div>` + `<br>` + group_associated_games_edit.innerHTML
How to use (after running the script)
The Script will add you a text box where the associate games area is
Simply enter the game's ID (you can find in SteamDB) and click "add game"
When you are done adding all you want click save
Closing Notes
After you add a game you will see its appID show under the textbox, this is to help you see what you have to add
Don't forget to press save at the end or this will not be added
Počet komentářů: 4
Black Blade  [autor] 2. led. 2021 v 9.45 
Hey just dropping this comment to hopefully block the chance of you getting a comment next time I reply to someone if that ever happens :D:
B l u e b e r r y P o p t a r t 27. říj. 2020 v 4.55 
Much appreciated for this. I saved the script myself for safe keeping like I always do in multiple areas but having it here is great for the community too.
Black Blade  [autor] 27. říj. 2020 v 4.39 
I think I should still improve it later, add something to show images and stuff of what you adding
Just for now, it works so will do
Dr.Shadowds 🐉 26. říj. 2020 v 17.04 
Nice