Skip to content

lukesrw/scrap-tf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Scrap.tf Functions Extension

In order to make these scripts more friendly to use, I've bundled them into a small Firefox Extension.

This extension provides you with a user interface to call the functions, rather than using the console.

Scrap.tf Scripts

Description

Instead of using the "AutoScrap" option, I like to retain at least 2 of each weapon.

Usage

Code should be pasted into the console on the following page: https://scrap.tf/sell/weapons

The function is called "scrapTFSellWeaponsAuto" and takes 4 arguments, these are:

Index Description Optional Example Default
0 Number of weapons to avoid scrapping, i.e. number of duplicates you want + 1 No 2
1 Name to find on the weapon, for example "Crafted by <name>" Yes "Luke" false
2 Whether you want to allow half-scraps to be included in the trade Yes true false
3 Whether to automatically click "Trade Now!" button Yes true false

Output

If you don't have sufficient weapons to scrap, the console will display "Nothing to scrap".

If you do have sufficient weapons to scrap, the following is presented:

Weapon Counts

| (index)     | Values          |
| ----------- | --------------- |
| Weapon Name | Number To Scrap |

Trade Contents

| (index)   | Values                                       |
| --------- | -------------------------------------------- |
| Refined   | Number of refined you should get             |
| Reclaimed | Number of reclaimed you should get           |
| Scrap     | Number of scrap you should get               |
| Scrap Raw | Total scrap value of refined/reclaimed/scrap |
| Weapons   | Total number of weapons being traded         |

Descripion

It's simple - it sorts the weapons, which makes it easier to see duplicates.

Usage

Code should be pasted into the console on the following page: https://scrap.tf/sell/weapons

The function is called "scrapTFSellWeaponsSort" and takes 0 arguments, just call it!

Output

No output.