Complete Your Set - Steam Forum Trading Helper

Automatically detects missing cards from a card set, help you auto fill in info New Trading Thread input area

目前為 2018-05-27 提交的版本,檢視 最新版本

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

作者
Quang Trinh
評價
0 0 0
版本
0.4
建立日期
2018-05-26
更新日期
2018-05-27
尺寸
8.2 KB
授權條款
MIT
腳本執行於

Complete Your Set - Steam Forum Trading Helper

Gifv

INTRODUCTION

This was a small script I had made for myself to easily make new trade threads, or to compare what I got and need with the others existing threads. I've just edited it a little bit and decided to make it public. It is convenient for me, and saves me a lot of time, so I think I may be useful for someone else too.

FEATURES

  1. Get Owned-Card-List and Unowned-Card-List
  2. Can check the missing cards to complete the set
  3. Automatically create and have it auto filled in the input areas in New Trading Thread arcoding to your config in the script

CONFIGURATIONS

tradeTag - This is the name of the cards which will appear in the title of your trading thread

1 - #Number of Set, for example: 2 of 5, Series 1, then it will be 2 in the title

2 - Show the card's name in title

tradeMode - This sets how your Card-List will be created

0 - List both Owned and Unonwed Cards

1 - Only List Owned Cards

2 - Only List Unowned Cards

badgeMode - This sets the way the script checks if your card set is full or not. Note that if you set custom value for badgeNumSet, your config in here will be ignored, it's always 2 in that case.

0 - Don't check for number of cards to full set, this is more like a cards lister mode

1 - Only check for game set that you have enough cards to make it full, this means if you navigate to the badge page of a game that you don't have enough cards to have a full set. The script will stop running as soon as it's done checking.

2 - Complete your remaining set. Unlike 1, the script will continue to run, then it lists the missing cards to complete that badge, but only if you have at least one card in the incomplete set. For example, if you have 2 of 5 in the set, the script will then list the rest of the series to you Want-List.

badgeNumSet - Set a reaching target for the number of full sets

0 - None

Integers > 0 - Set a target number for Card Sets - This will also set badgeMode = 2

customBody, customTitle - Set the text which will appear after the tite and content of your Trading Thread. Default values are "\n[1:1] Trading" and " [1:1]", you can always empty them by setting the value to "". Site note: to make a linebreak here you have to use \n like the one in the default value.

DOWNLOAD

Greasyfork.org

INSTRUCTIONS

  1. Download and install Tampermonkey for your browser
  2. Download the script
  3. Press install when asked
  4. (Optional) Configure your preferred settings in the script code
  5. Go to the Game Card Page, if the script functions correctly then you will see a "Visit Trading Forum" button next to the "View cards in my Inventory" and "Sell these cards on the Market" within seconds. According to the deafault config, if you go to a Game Card Page that you don't have enough cards to have a full set, the button won't appear. However, if you open the browser console (Pressing F12 if you're on Firefox), on 'console' tab with 'logs' filtered, if you see this line: "Number of cards you've owned: x", then you can tell that the script is running correctly. Also note that the script will only do the autofill part if you navigate directly from the Game Badge Page.
  6. Enjoy!

FAQ

Jesus Christ! The script somehow works, but the way you made it function is a disaster, seriously dude?

Yeah, I know, I'm not working in the IT field. I just know a little bit about Javascript (mostly self-learning) and that's all. I know there are probaly better ways to do this stuff but it seems to work ok for me so I wanna share. I'd be happy if you can help me improve it. :)

Uhm, it doesn't work for me, why is that?

I'm not sure, you can tell if the script is running by opening the browser console.

It works, the console says so but why can't I notice anything different?

Open the script editor, uncomment those lines with console.log inside (Basically remove the // from //console.log. Go to the Game Card Page then grab some logs, then fire a new issue with those logs inside for me. I will see what I can do.

Github Repository