Greasemonkey

xcfr > en
Thanks to Hexkid [421738] for creating these scripts!
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.


Scripts

Current TCB official/ tested versions:
TC City Express Crimes Express Bust War Base SuperPack *

(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:
http://github.com/tcbasic/tc-greasemonkey/tree/master

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:
http://www.mozilla.com/en-US/firefox/
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:
https://addons.mozilla.org/en-US/firefox/addon/748


Click on any images for a larger, detailed image

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.


or


Once the script/s is installed, you can view them, and manage them by going to Tools > Greasemonkey in your firefox menu bar.



Make sure the script has a tick next to 'Enabled' if you want to use it. If you want to browse without it, here's where you can disable the script by unticking it.


Part 3: Using and Editing Scripts

After clicking on 'Manage User Scripts', you can view all installed greasemonkey scripts.

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 http://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 http://www.torncity and the http://torncity versions, or http://www.torn.com and http://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 http://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: http://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!

Back to Top



Safety Concerns

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.

Back to Top



TC City Script - What it does

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)



Below we cover some of the features in the TC City script (v. 2008092.6). Check the numbers in the image above for the corresponding menu item.

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.


2. Ticking Clock (Broken)

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.

Back to Top



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.

Back to Top


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:

asc

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:

asc

3. Parcel/Present labeling:

- Access: Items > [open] link next to your Parcel/Present
- Function:
+ You can label your individual parcels/presents
- Screenshot:

asc

Any comments, bugs, issues, suggestions... please PM me in game, ID [500343]

Back to Top


Comments (226)

Subscribe to this comment's feed

Show/hide comments
 1 2 3 4 5 >  Last ›
...
0
TCB: Greasemonkey was legalized on Sep 17th 08.
Please ignore any comments to the contrary posted before this date.
uo- , September 13, 2007
...
0
There is a way I've seen for them to find out. It involves them installing the script and going to the users online, I just installed this to make sure I remembered it right. It shows up similar to the way your name does when using it, [name], but when I turn it off it goes back to normal. So my guess is that the link to your profile somehow interferes with the users online page. Can you verify and possibly change this?
J.C. , September 15, 2007
...
hexkid
The script interferes with the users online page, yes. But admins can't find out the script is being used just because of that.

That is just an innocuous bug (which will be corrected in a future version of the script).
Pedro , September 15, 2007
...
0
Ahh, cool makes me feel much better. :)
J.C. , September 16, 2007
...
0
so there's no possible way of them finding out unless the express crimes is used?
123456789 , October 02, 2007
...
besty111
is this safe do install and download

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.
luke , October 17, 2007
...
besty111
i have tried to download this but thhere is no download button can u plz answer this question thanks

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.
luke , October 19, 2007
...
0
I find it wierd that you say its an illegal add on for torncity, yet you have guides on how to use it lol

TCB: As an unofficial TC guide, we'll put all info up, unless it's damaging to the game.
JPB , October 29, 2007
...
besty111
how do you add your own picture onto your house like the boat above
luke , November 07, 2007
...
0
be careful with that script! the creator hexkid is logging your ip at his downloadpage to send it to the staff for rechecking their database!
Advisor , November 09, 2007
...
BlackBolt
It's not within the official TC site, and as it's not altering the "game files" in any way to ones advantage, you can't be banned for visiting a site.
jovis , November 10, 2007
...
woof
is it just me, or did the time til your happy bar refill mess up recently? and its now before the bar, instead of above.

and the highlighting good levels in jail doesnt work on any except the first page

you really can tell hexkid isnt updating it
Daniel , November 19, 2007
...
hpotter
Greasemonkey dose not work on battle stats anymore in the home menu , since they color coded the stats now,but it still shows the percent in the gym and what stat u should work on.
mike , December 18, 2007
...
0
Few question :
Is some of the function in TCCity Script ain't working anymore?
Example: i)Ticking clock(what I wanted most >_

TCB: Hexkid hasn't found the time to update greasemonkey lately. Hopefully we can expect more updates soon!
Anonymous #9 , December 19, 2007
...
0
open file: c:Documents and Settingsyour_userApplication DataMozillaFirefoxProfilesany_symbols.defaultgm_scripts ccity.user.js

change 332-335 lines to:

var rx_spe = /Speed:s s (?:(d ),)?(d .d )s /im;
var rx_str = /Strength:s s (?:(d ),)?(d .d )s /im;
var rx_def = /Defence:s s (?:(d ),)?(d .d )s /im;
var rx_dex = /Dexterity:s s (?:(d ),)?(d .d )s /im;

and setting battle stats from home menu will work
robsas , January 09, 2008
...
Link
i want an updated script already to get rid of all 20 links to the radio and all 40 links to your properties.
Franco , February 03, 2008
...
0
The site for the scripts is DOWn
EvanMoore2008a , March 04, 2008
...
0
the site hexkid is still down...
any other link?
or some1 that can send that to me?

greets!
... , March 04, 2008
...
KillerIce
Yea that site is down is there any other way to get the script?

TCB: We're working on it
KillerIce , March 14, 2008
...
Ouuuch
Does anyone has the clock tool for TC? I just need it. This ticking clock doesn't work anymore
Ouuuch , March 15, 2008
...
KillerIce
Does any one know how to edit it and customize it like hide what you want to hide and stuff? Because I can't find the settings for it.

TCB: ONce it's activated and installed, go to the TC City page, and scroll down. Everything you need should be there.
KillerIce , March 15, 2008
...
Aerozol
Thanks to John Doe ad EvanTheOne for the xpress Bust Script!
Anonymouse , March 22, 2008
...
InFaDeLiTy
Why the hell doesnt the time tick? I set it to and it still needs be refreshed to see.
And whys there "Go there" next to city? Whats point of it.

TCB: Some functions need to be fixed.
Joel , March 22, 2008
...
Link
I went to an archived page of hexkid's site and it says:

--------------------------------------------------------------
TCcity script discontinued

The script I wrote for TornCity is an illegal add-on.

The script breaks the "Terms of Service".

10) Players agree not to, through software or other methods, interfere with the site operation and page content. Players agree to follow all administrator requests and instructions.

All users who downloaded it, please consider uninstalling it from your computers.
--------------------------------------------------------

needless to say im not gonna uninstall it, it's way too useful. i just wish i knew how to edit it =(
Franco , March 24, 2008
...
Link
in fact, i say we all mail hexkid untill he starts making it again

TCB: We've got someone who's recoding it for us now. It would be great if Hexkid could come back though.
Franco , March 24, 2008
...
0
Did you get my e-mail? i sent you the whole script and everything i had :P

TCB: Got it, thanks a lot!
EvanTheOne , April 06, 2008
...
BlackBolt
Any word on the update?
jovis , April 11, 2008
...
rappit
i installed greasemoneky but im not able to install the scripts, i press on the links of the the scripts and nothing happens! any help?!

TCB: It should automatically pop up with a awindow asking you to install, perhaps wait a minute or two after clicking the link? Or try going through here: http://userscripts.org/users/47543/scripts
If anyone else has issues, please comment.
Moe , May 03, 2008
...
rappit
still nothin, non works not even the link you gave me, i waited and waited and no window popped up...i am using firefox and windows vista, do you think vista has anythin to it?
Moe , May 04, 2008
...
rappit
any help to my problem stated above?

TCB: Sorry, this is out of our range of expertise. Hopefully not an issue with TCB, but greasemonkey/ your settings/ browser etc. Try google? ;)
Moe , May 05, 2008
 1 2 3 4 5 >  Last ›

Write comment

You must be logged in to post a comment. Please register if you do not have an account yet.

busy

Random Info

A lot of things get added to the site that don't warrant a front page announcement. Check out our Small Updates page to see all the minor updates.
This content on this website is © gamebasics.info | Images © Torn City - Online RPG Game | Hosted by BlueTreeHost