Greasemonkey
Last Updated on Thursday, 28 January 2010 11:02
Thanks to MathewS [373969] for his updates and additions!
Thanks to Amita [500343] for the SuperPack script!
Tutorials: | ||
Installing and Using Greasemonkey | ||
Safety Concerns | ||
What the Scripts do: | ||
TC City | Express Crimes | SuperPack |
Note: The TC City script is incompatible with some new TC updates (eg the new Items page).
You need to add www.torn.com/items (or torn.com etc) to the excluded pages for the page to work properly.
Current TCB official/ tested versions:
* (Click a Link to download)
These scripts are all compatible, and can be used simultaneously
Note: Each version may be different, and pending TC updates or changes, different functions may stop working. If you enjoy these scripts, and want something updated, it’s also your responsibility to fix them, or encourage/ find people to spend their free time fixing scripts for you.
You can check here for updated versions:
If you are editing the script, please do not remove the credits to any past contributors, and submit your changes to the github directory linked to above.
Greasemonkey was legalised on Sep 17th 08
*the TC SuperPack script is not maintained by TCB, and can change without notice
Installing and Using Greasemonkey
Part 1: Installing Firefox and Greasemonkey
To be able to use Greasemonkey, you need to be using the Firefox browser, and install the Greasemonkey extension.
Download the Firefox browser from:
Remember, if you don’t like it, you can always just uninstall it again.
Then, open the firefox browser, and install the following Greasemonkey firefox addon:
Once it’s been installed, restart Firefox when it prompts you to.
Part 2: Installing the Scripts
Now click on one of the links at the top of this page, in the script section, to install the script you want to try. You can see a description of some of each scripts functions further down this page.
You can also download one throug hthe github link, also found in the Script section above.
Once the script/s is installed, you can view them, and manage them by going to Tools > Greasemonkey in your firefox menu bar.
In the example above, there’s three different versions of the TC City script installed, as well as scripts for other sites. The only enabled script is the bottom black TCCity script.
Through this window you can enable or disable different scripts, and view and edit their code/ functions, by clicking Edit. To edit the scripts you need a knowledge of javascript.
The windows labeled ‘Included Pages’ and ‘Excluded Pages’ are which pages the script will be functioning on. A * is a wildcard, and means that any extension after that point in the url is included. For instance, in the TCCity script above https://torncity.com* means that any url in torn city will have the script running on it.
If your script isn’t working, make sure torncity is included here- both the https://www.torncity and the https://torncity versions, or https://www.torn.com and https://torn.com.
If you don’t want to have Greasmonkey running on a page, for instance you don’t want the script to change anything only while your on your items page, add https://torncity.com/items.php to the Excluded Pages window.
If you’re unsure about the safety of a script, you can add the login page to the excluded window.
The link you would be adding is: https://www.torn.com/, or whatever you use to login to TC.
If your script is not working, and it is installed properly, right click it in this window and make sure it is Enabled!
Your script should be enabled and working now!
If it’s not working, try uninstalling it, and reinstalling it, or using a different version.
If you’re using the TC City script, you can find the settings menu below the City.
You have to enable some functions here before they will begin to work.
Enjoy!
Using Greasemonkey it is possible to insert code into the script that reads your username and password, and sends it to somebody. This is called a ‘cookie grabber’.
This can ONLY happen if you have installed the script, and allowed it to run on that page.
You can avoid this by only installing scripts checked by TCB, or by adding the TC login page, for instance, to your ‘exclude’ list in the script options.
You can see how to do this just above, in the part about Editing your scripts (Here).
For example, the page shown in the image below is 100% safe from that script:
Remember, the scripts that we’ve checked at the top are safe.
However, if you’re downloading random scripts from userscripts.org, or elsewhere, make sure to check the comments, or the code.
As shown in the image directly above this section, you have to scroll down below the city in TC to find the menu for this script. From here you can customize what it does and how your pages display.
This is the menu:
(Please remember that different versions will differ from below, and functions may stop working if TC changes/ updates pages or code)
1. Highlighting
Highlighting does just that- you can set different parameters, and select what, if anything, you wish to highlight, for instance people to bust, or donator packs in the markets.
The usual clock, but it ticks in real time! Very handy if you’re waiting for a certain time in the auction house, or don’t want to keep refreshing the page to check TC time. You can also change this clock to display the time of any timezone. |
3. Simple Login Page
Good for users on dialup, or who just don’t want to view all of the login, and images that are displayed on the login page. |
4. Customizable Menu
This is where you can edit your menu at will, adding and removing items. In the example shown, some menu items have been expanded upon, such as Crimes | Offences, and the user has chosen to remove a lot of items, such as the Newspaper and Rewards. | |
5. Express Train
To activate this function, you have to enter percentages into the Battle Stat distribution in the GM menu. You can now train in one click! It also tells you your current battle stat percentage (visit your home page to update this), and highlights what stat you should train to achieve your entered distribution percentage. | |
6. Times, Clock and Percentages
In this menu you can activate a few things, such as the ticking clock and the time it will take for your bars to refill | |
And displaying your battle stat percentage on the home page | |
And more…
Totals and categorization of Item page:
Crimes for next award:
And some more that we haven’t covered here.
Express Crimes Script – What it does
Once you’ve installed the Express Crimes Script, your crimes page will stay the same as usual, except that there are boxes below that you can choose to tick.
Once you’ve ticked one of these boxes you will be given the option to do any crime of that nerve in one click. In the example shown below, the 11 and the 15 nerve crimes have been selected.
You can deselect, or select more crimes at any time.
TC SuperPack Script – What it does
Requirement : Greasemonkey 0.8+
This script implements 3 functions for torncity players:
1. AntiScamming Center
– Access: City > City Center > Anti Scamming Center
– Function:
+ Colors/Highlights scammers whose ids have been added by yourself and/or fetched by our server.
+ Displays a warning when trading or sending cash to a scammer.
+ several anti scamming/phishing utilities
Note: This only becomes active once you’ve added (or fetched from the server) some ID’s, and Saved the config
– Screenshot:
2. Event Checking
– Acces : City > City Center > Event Check
– Function:
+ Check your mail/event every x seconds (you can set x dynamically)
+ Displays alert when your energy/health/nerve reaches certain amount
– Screenshot:
3. Parcel/Present labeling:
– Access: Items > [open] link next to your Parcel/Present
– Function:
+ You can label your individual parcels/presents
– Screenshot:
Any comments, bugs, issues, suggestions… please PM me in game, ID [500343]
Comments (226)
Subscribe to this comment’s feed
…
…
That is just an innocuous bug (which will be corrected in a future version of the script).
…
…
TCB: We’d like to assure you that we would not link to anything that isn’t secure.
We do however take no responsibility for your actions.
Anyone who’s thinking the same: You have to make the decision yourself, based on the information we offer.
…
TCB: Follow all of the instructions on this page, then click on ‘download’ next to the script you want to install on hexkids site. Your download shoudl start automatically, if you wait for a few seconds.
…
TCB: As an unofficial TC guide, we’ll put all info up, unless it’s damaging to the game.
Please ignore any comments to the contrary posted before this date.