User:Aichon/Userscripts: Difference between revisions

From The Urban Dead Wiki
Jump to navigationJump to search
(Major overhaul of the page's appearance)
Line 1: Line 1:
__NOTOC__
{{User:Aichon/Navbar}}
{{User:Aichon/Navbar}}
{|style="width:100%; background: #212921; color: #ffc; border: #565 solid 3px; padding: 1px;"
|-
|style="border: #565 solid 1px; padding: 10px;" valign=top rowspan=2|
==<span style="color: #ffc; font-weight: bold;">Intro and support</span>==
While Urban Dead does a good job of supplying the player with all of their basic requirements to play the game, the interface leaves something to be desired. However, there is a solution. Thanks to the miracle of [http://addons.mozilla.org/en-US/firefox/addon/748 Greasemonkey] for Firefox (and now [http://8-p.info/greasekit/ GreaseKit] for Safari and [http://greasemetal.31tools.com/ Greasemetal] for Chrome), the players can take control of their own interfaces, making them look however they want and adding plenty of extra functionality to boot. If you need help installing or setting up Greasemonkey/Kit/Metal, I'm not the guy to ask. Once you get it installed though, you should be able to just click on the '''Install''' links I provide below to start using the scripts.


I have begun editing and creating a variety of userscripts to replicate the functionality of some of the Firefox extensions I've seen. Most of them are just minor aesthetic changes, but several of them greatly enhance the look and feel of the game to such an extent that it is hard to go back after having used them. Currently, these are the scripts I have developed.
If you like my scripts and find that you're using them, I highly suggest clicking the [http://wiki.urbandead.com/index.php?title=User:Aichon/Userscripts&action=watch watch] link at the top of the page, then periodically checking your [[Special:Watchlist|Watchlist]] for any changes to this page. If a script you like has been updated, just click the '''Install''' link for it again, and you should get the new version of it automatically.


==Original Releases==
I have tested these scripts exclusively in Safari for Mac using GreaseKit. They should all work in Greasemonkey. Greasemetal seems to have less functionality implemented, so I can't make any promises for it, but most of my scripts are pretty simple, so I'm guessing they should work. If you run into any trouble with the scripts, make sure you're using the latest version of the script, and if the issue persists, please contact me via my [[User Talk:Aichon|talk page]] so we can try to troubleshoot it there. I'll say right now that I don't have much patience for people who ignore answers that have already been posted in plain sight, so please don't be one of those people.
These userscripts were coded from scratch by me. Feel free to use them however you want. If you run into bugs, drop me a note on my [[User_talk:Aichon | talk]] page and I'll see what I can do for you.


===UD A-GPS Coordinates===
I have begun editing and creating a variety of userscripts to replicate the functionality of some of the Firefox extensions I've seen. Most of them are just minor aesthetic changes, but several of them greatly enhance the look and feel of the game to such an extent that it is hard to go back after having used them. I claim no credit for the work done on the modified releases by their original authors. I've also generally been lazy with updating the comments at the top of the code in them, so most of them don't have me listed as a contributor or have the changes I made listed.
Version 1.0.1, updated 2009-09-01, [http://www.aichon.com/dumpbox/ud_userscripts/udagpscoordinates.user.js Install]


'''Description:''' Like several other GPS scripts, it simply displays the GPS coordinates for your character next to the suburb name above the minimap. I felt this was necessary since I noticed logical errors in some of the other GPS scripts I was using, and also did not appreciate their approach to handling the problem. Please note that this script does not work with [[User:Midianian/Userscripts#UDML|Midianian's Urban Dead Map Links script]]. I've posted a modified version of his script below that works with mine.


[http://www.aichon.com/dumpbox/ud_userscripts/screenshots/udagpscoordinates1.png Screenshot]
==<span style="color: #ffc; font-weight: bold;">Original releases</span>==


===UD Better HP Colorizer===
<!--
Version 1.0, updated 2009-10-02, [http://www.aichon.com/dumpbox/ud_userscripts/udbetterhpcolorizer.user.js Install]
{|style="background-color: #212921; color: #ffc; border: #565 solid 1px;"
|-
|colspan=3|
===<span style="color: #ffc; font-weight: bold;">NAME_OF_SCRIPT_HERE</span>===
|-style="font-size: .8em;" align=left border=1px
|style="width: 50px;"|[http://www.aichon.com/dumpbox/ud_userscripts/SCRIPT_NAME_HERE.user.js Install]
|style="width: 105pxpx;"|version VERSION_NUMBER_HERE
|updated UPDATED_DATE_HERE
|-
|colspan=3|DESCRIPTION_TEXT_HERE
|-style="font-size: .8em;"
|colspan=3|[http://www.aichon.com/dumpbox/ud_userscripts/screenshots/SCREENSHOT_NAME_HERE.png Screenshot]
|}
-->


'''Description:''' Colorizes the HP value for each character based on how high their HP is and declutters things by removing the actual "HP" text from next to the character's name. Colors range from '''{{c|#F0AF78|peach}}''' at nearly-full HP to '''{{c|#FF283C|reddish-pink}}''' at 1 HP. It works best when it's paired with a script that modifies the character links from their original pink color to something else (such as the Better Name Colorer script, below), that way the HP values contrast more, instead of blending in. It currently does not do anything when you're zombified and using Scent Blood (planning to change this at some point). Credit goes to Sean Dwyer for the original concept.
{|style="background-color: #212921; color: #ffc; border: #565 solid 1px;"
|-
|colspan=3|
===<span style="color: #ffc; font-weight: bold;">UD A-GPS Coordinates</span>===
|-style="font-size: .8em;" align=left border=1px
|style="width: 50px;"|[http://www.aichon.com/dumpbox/ud_userscripts/udagpscoordinates.user.js Install]
|style="width: 105px;"|updated 2009-09-01
|version 1.0.1
|-
|colspan=3|Like several other GPS scripts, it simply displays the GPS coordinates for your character next to the suburb name above the minimap. I felt this was necessary since I noticed logical errors in some of the other GPS scripts I was using, and also did not appreciate their approach to handling the problem. Please note that this script does not work with [[User:Midianian/Userscripts#UDML|Midianian's Urban Dead Map Links script]]. I've posted a modified version of his script below that works with this script.
|-style="font-size: .8em;"
|colspan=3|[http://www.aichon.com/dumpbox/ud_userscripts/screenshots/udagpscoordinates1.png Screenshot]
|}


[http://www.aichon.com/dumpbox/ud_userscripts/screenshots/udbetterhpcolorizer1.png Screenshot], (with [http://www.aichon.com/dumpbox/ud_userscripts/screenshots/udbetterhpcolorizer2.png Better Name Colorer]), [http://www.aichon.com/dumpbox/ud_userscripts/screenshots/udbetterhpcolorizer3.png Screenshot], (with [http://www.aichon.com/dumpbox/ud_userscripts/screenshots/udbetterhpcolorizer4.png Better Name Colorer])


===UD Same Character Highlighter===
{|style="background-color: #212921; color: #ffc; border: #565 solid 1px;"
Version 1.0.1, updated 2009-09-12, [http://www.aichon.com/dumpbox/ud_userscripts/udsamecharacterhighlighter.user.js Install]
|-
|colspan=3|
===<span style="color: #ffc; font-weight: bold;">UD Better HP Colorizer</span>===
|-style="font-size: .8em;" align=left border=1px
|style="width: 50px;"|[http://www.aichon.com/dumpbox/ud_userscripts/udbetterhpcolorizer.user.js Install]
|style="width: 105px;"|updated 2009-10-02
|version 1.0
|-
|colspan=3|Colorizes the HP value for each character based on how high their HP is and declutters things by removing the actual "HP" text from next to the character's name. Colors range from '''{{c|#F0AF78|peach}}''' at nearly-full HP to '''{{c|#FF283C|reddish-pink}}''' at 1 HP. It works best when it's paired with a script that modifies the character links from their original pink color to something else (such as the Better Name Colorer script, below), that way the HP values contrast more, instead of blending in. It currently does not do anything when you're zombified and using Scent Blood (planning to change this at some point). Credit goes to Sean Dwyer for the original concept.
|-style="font-size: .8em;"
|colspan=3|[http://www.aichon.com/dumpbox/ud_userscripts/screenshots/udbetterhpcolorizer1.png Screenshot], (with [http://www.aichon.com/dumpbox/ud_userscripts/screenshots/udbetterhpcolorizer2.png Better Name Colorer]), [http://www.aichon.com/dumpbox/ud_userscripts/screenshots/udbetterhpcolorizer3.png Screenshot], (with [http://www.aichon.com/dumpbox/ud_userscripts/screenshots/udbetterhpcolorizer4.png Better Name Colorer])
|}


'''Description:''' When you log in, you're sometimes greeted by a long list of actions that happened while you were away. Especially annoying is when you see that several dozen of them were done by "a zombie," with no indication offered of which zombie did what. This script is configured such that mousing over a character will underline all links to that character on the page, allowing you to see just who was responsible for what. It works with survivors too, of course.


===UD Survivor Aggregator===
{|style="background-color: #212921; color: #ffc; border: #565 solid 1px;"
Version 1.1.1, updated 2009-09-28, [http://www.aichon.com/dumpbox/ud_userscripts/udsurvivoraggregator.user.js Install]
|-
|colspan=3|
===<span style="color: #ffc; font-weight: bold;">UD Same Character Highlighter</span>===
|-style="font-size: .8em;" align=left border=1px
|style="width: 50px;"|[http://www.aichon.com/dumpbox/ud_userscripts/udsamecharacterhighlighter.user.js Install]
|style="width: 105px;"|updated 2009-09-12
|version 1.0.1
|-
|colspan=3|When you log in, you're sometimes greeted by a long list of actions that happened while you were away. Especially annoying is when you see that several dozen of them were done by "a zombie," with no indication offered of which zombie did what. This script is configured such that mousing over a character will underline all links to that character on the page, allowing you to see just who was responsible for what. It works with survivors too, of course.
|}


'''Description:''' Rather than displaying the names of the first 4-5 survivors at your location on the minimap, this script will display a count of the number of survivors. Essentially, just like how zombies show up on the minimap, except for survivors. By design, it doesn't count the survivors at neighboring blocks, just at your current block, but if people want that as an option, I might be up for coding it.


[http://www.aichon.com/dumpbox/ud_userscripts/screenshots/udsurvivoraggregator1.png Screenshot]
{|style="background-color: #212921; color: #ffc; border: #565 solid 1px;"
|-
|colspan=3|
===<span style="color: #ffc; font-weight: bold;">UD Survivor Aggregator</span>===
|-style="font-size: .8em;" align=left border=1px
|style="width: 50px;"|[http://www.aichon.com/dumpbox/ud_userscripts/udsurvivoraggregator.user.js Install]
|style="width: 105px;"|updated 2009-09-28
|version 1.1.1
|-
|colspan=3| Rather than displaying the names of the first 4-5 survivors at your location on the minimap, this script will display a count of the number of survivors. Essentially, just like how zombies show up on the minimap, except for survivors. By design, it doesn't count the survivors at neighboring blocks, just at your current block, but if people want that as an option, I might be up for coding it.
|-style="font-size: .8em;"
|colspan=3|[http://www.aichon.com/dumpbox/ud_userscripts/screenshots/udsurvivoraggregator1.png Screenshot]
|}


===UD Zero Out Buttons===
Version 1.0.1, updated 2009-08-29, [http://www.aichon.com/dumpbox/ud_userscripts/udzerooutbuttons.user.js Install]


'''Description:''' Simply removes the buttons under the minimap to things like the Wiki, the FAQ, your Skills page, Contacts, etc. It's nice to have if you pair it up with QuickLinks or some other script that provides you access to those links anyway. If you don't have some other script that adds those links, I'd suggest avoiding this script. Also, '''make sure this script executes last'''. If you're using GreaseKit with the rest of my scripts, you're probably okay since they execute in alphabetical order (if you're using other people's scripts as well, and they started with something that comes after "UD Zero" alphabetically, you may have issues). If you're using Greasemonkey, move it to the bottom of the execution list, that way it comes after QuickLinks and most of the other scripts, otherwise you'll possibly run into issues.
{|style="background-color: #212921; color: #ffc; border: #565 solid 1px;"
|-
|colspan=3|
===<span style="color: #ffc; font-weight: bold;">UD Zero Out Buttons</span>===
|-style="font-size: .8em;" align=left border=1px
|style="width: 50px;"|[http://www.aichon.com/dumpbox/ud_userscripts/udzerooutbuttons.user.js Install]
|style="width: 105px;"|updated 2009-08-29
|version 1.0.1
|-
|colspan=3|Simply removes the buttons under the minimap to things like the Wiki, the FAQ, your Skills page, Contacts, etc. It's nice to have if you pair it up with QuickLinks or some other script that provides you access to those links anyway. If you don't have some other script that adds those links, I'd suggest avoiding this script. Also, '''make sure this script executes last'''. If you're using GreaseKit with the rest of my scripts, you're probably okay since they execute in alphabetical order (if you're using other people's scripts as well, and they started with something that comes after "UD Zero" alphabetically, you may have issues). If you're using Greasemonkey, move it to the bottom of the execution list, that way it comes after QuickLinks and most of the other scripts, otherwise you'll possibly run into issues.
|}


==Modified Releases==
These scripts are ones that I modified from existing code. I claim no credit for the original work and anyone is welcome to use my changes as they see fit. Most of them have incorrect comments at the top, since I didn't bother to add myself as an author or update the change logs with the modifications I made.
#[http://www.aichon.com/dumpbox/ud_userscripts/udaprecoverytimeindicator.user.js AP Recovery Time Indicator]: Displays an estimate (accurate to within 30 minutes) of when your AP will be fully recovered. I wish I could configure it to determine when the [[tick | AP tick]] would occur, but GreaseKit doesn't support the GM_* functions at the moment, so I don't see how I can program it to remember when the character's tick would occur. It borrows code from a few extensions and userscripts, though I'll probably rewrite it with entirely original code at some point. Credit goes to Sean Dwyer for the original concept.
#[http://www.aichon.com/dumpbox/ud_userscripts/udbuildingstatecolourizer.user.js Building State Colourizer]: Colorizes some of the text on the page pertaining to barricade levels, generator/radio statuses, and a handful of other useful events. A few of the color and style choices "shouted" too much for my tastes, so I've modified almost all of them to provide better contrast on the screen and also to only "shout" when necessary. I also added the functionality to underline text. Credit goes to Midianian for the original script.
#[http://www.aichon.com/dumpbox/ud_userscripts/udbetternamecolorer.user.js Better Name Colorer]: Uses different colors for characters that are in your contacts list. Essentially, the colors are more muted (almost pastel) in color, which greatly increases the contrast and makes their names much easier to read, in my opinion. I'll probably be changing this into a general custom CSS loader eventually, rather than restricting it to just name colorizing. It borrows heavily from another userscript. Credit goes to gurujery for the original script.
#[http://www.aichon.com/dumpbox/ud_userscripts/udmaplinks.user.js Map Links]: Displays links to the wiki and Red Rum  maps for the suburb you are currently in. The only change I made was to allow it to play nice with my A-GPS script. Credit goes to Midianian for the original script.
#[http://www.aichon.com/dumpbox/ud_userscripts/udquicklinks.user.js QuickLinks]: Adds a menubar to the top of the UD screen, making it easier to select a few common actions. I've added quite a few additional buttons to the menubar, negating the need to have the buttons under the minimap for the Wiki, FAQ, Skills, Contacts, and others. I've also fixed a few minor bugs, changed the appearance slightly, and added it to a few more pages. Credit goes to Vaevictus for the original script.
#[http://www.aichon.com/dumpbox/ud_userscripts/uditemcombinerorganizerandsorter.user.js Item Combiner, Organizer, and Sorter]: Makes your inventory usable by rearranging and combining buttons. I modified it slightly to hide some useless buttons that just waste your AP, and I'll be modifying it more as time goes on, but it's a great script. Credit goes to Midianian for the original script.
#[http://www.aichon.com/dumpbox/ud_userscripts/udmap.user.js UDMap]: Displays an additional set of minimaps under the main map, allowing you to see your current suburb, as well as any other suburb. I modified the appearance slightly, have started adding Necrotech buildings to the dataset (currently about 40% done), and fixed an error in the way that it calculated your location (2009-10-17: fixed another one as well). Credit goes to Janzak for the modified script.


==To Do and Ideas==
==<span style="color: #ffc; font-weight: bold;">Modified Releases</span>==
{|style="background-color: #212921; color: #ffc; border: #565 solid 1px;"
|-
|colspan=3|
===<span style="color: #ffc; font-weight: bold;">AP Recovery Time Indicator</span>===
|-style="font-size: .8em;" align=left border=1px
|style="width: 50px;"|[http://www.aichon.com/dumpbox/ud_userscripts/udaprecoverytimeindicator.user.js Install]
|style="width: 105px;"|updated 2009-08-30
|original author Sean Dwyer
|-
|colspan=3|Displays an estimate (accurate to within 30 minutes) of when your AP will be fully recovered. I wish I could configure it to determine when the AP [[tick]] would occur, but GreaseKit doesn't support the GM_* functions at the moment, so I don't see how I can program it to remember when the character's tick would occur. It borrows code from a few extensions and userscripts, though I'll probably rewrite it with entirely original code at some point.
|-style="font-size: .8em;"
|colspan=3|[http://www.aichon.com/dumpbox/ud_userscripts/screenshots/aprecoverytimeindicator1.png Screenshot]
|}
 
 
{|style="background-color: #212921; color: #ffc; border: #565 solid 1px;"
|-
|colspan=3|
===<span style="color: #ffc; font-weight: bold;">UD Building State Colourizer</span>===
|-style="font-size: .8em;" align=left border=1px
|style="width: 50px;"|[http://www.aichon.com/dumpbox/ud_userscripts/udbuildingstatecolourizer.user.js Install]
|style="width: 105px;"|updated 2009-09-29
|original author Midianian
|-
|colspan=3|Colorizes some of the text on the page pertaining to barricade levels, generator/radio statuses, and a handful of other useful events. A few of the color and style choices "shouted" too much for my tastes, so I've modified almost all of them to provide better contrast on the screen and also to only "shout" when necessary. I also added the functionality to underline text.
|-style="font-size: .8em;"
|colspan=3|[http://www.aichon.com/dumpbox/ud_userscripts/screenshots/buildingstatecolorizer1.png Screenshot]
|}
 
 
{|style="background-color: #212921; color: #ffc; border: #565 solid 1px;"
|-
|colspan=3|
===<span style="color: #ffc; font-weight: bold;">Better Name Colorer</span>===
|-style="font-size: .8em;" align=left border=1px
|style="width: 50px;"|[http://www.aichon.com/dumpbox/ud_userscripts/udbetternamecolorer.user.js Install]
|style="width: 105px;"|updated 2009-09-07
|original author gurujery
|-
|colspan=3|Uses different colors for characters that are in your contacts list. Essentially, the colors are more muted (almost pastel) in color, which greatly increases the contrast and makes their names much easier to read, in my opinion. I'll probably be changing this into a general custom CSS loader eventually, rather than restricting it to just name colorizing.
|-style="font-size: .8em;"
|colspan=3|Both with [[#UD Better HP Colorizer|Better HP Colorizer]]: [http://www.aichon.com/dumpbox/ud_userscripts/screenshots/udbetterhpcolorizer2.png Screenshot], [http://www.aichon.com/dumpbox/ud_userscripts/screenshots/udbetterhpcolorizer4.png Screenshot]
|}
 
 
{|style="background-color: #212921; color: #ffc; border: #565 solid 1px;"
|-
|colspan=3|
===<span style="color: #ffc; font-weight: bold;">UD Item Combiner, Organizer, and Sorter</span>===
|-style="font-size: .8em;" align=left border=1px
|style="width: 50px;"|[http://www.aichon.com/dumpbox/ud_userscripts/uditemcombinerorganizerandsorter.user.js Install]
|style="width: 105px;"|updated 2009-10-12
|original author Midianian
|-
|colspan=3|An absolutely incredible script that makes your inventory usable by rearranging and combining buttons. I modified it slightly to hide some useless buttons that just waste your AP, and I'll be modifying it more as time goes on, but it's a great script. I can't speak highly enough of it, since it makes the game much more playable.
|-style="font-size: .8em;"
|colspan=3|[http://www.aichon.com/dumpbox/ud_userscripts/screenshots/udicos1.png Screenshot]
|}
 
 
{|style="background-color: #212921; color: #ffc; border: #565 solid 1px;"
|-
|colspan=3|
===<span style="color: #ffc; font-weight: bold;">UDMap</span>===
|-style="font-size: .8em;" align=left border=1px
|style="width: 50px;"|[http://www.aichon.com/dumpbox/ud_userscripts/udmap.user.js Install]
|style="width: 105px;"|updated 2009-10-16
|original author Janzak
|-
|colspan=3|Displays an additional set of minimaps under the main map, allowing you to see your current suburb, as well as any other suburb. I modified the appearance slightly, have started adding Necrotech buildings to the dataset (currently about 40% done), and fixed an error in the way that it calculated your location (2009-10-17: fixed another one as well).
|-style="font-size: .8em;"
|colspan=3|[http://www.aichon.com/dumpbox/ud_userscripts/screenshots/udmap1.png Screenshot]
|}
 
 
{|style="background-color: #212921; color: #ffc; border: #565 solid 1px;"
|-
|colspan=3|
===<span style="color: #ffc; font-weight: bold;">UD Map Links</span>===
|-style="font-size: .8em;" align=left border=1px
|style="width: 50px;"|[http://www.aichon.com/dumpbox/ud_userscripts/udmaplinks.user.js Install]
|style="width: 105px;"|updated 2008-08-30
|original author Midianian
|-
|colspan=3|Displays links to the wiki and Red Rum maps for the suburb you are currently in. The only change I made was to allow it to play nice with my A-GPS script.
|-style="font-size: .8em;"
|colspan=3|[http://www.aichon.com/dumpbox/ud_userscripts/screenshots/udmaplinks1.png Screenshot]
|}
 
 
{|style="background-color: #212921; color: #ffc; border: #565 solid 1px;"
|-
|colspan=3|
===<span style="color: #ffc; font-weight: bold;">QuickLinks</span>===
|-style="font-size: .8em;" align=left border=1px
|style="width: 50px;"|[http://www.aichon.com/dumpbox/ud_userscripts/udquicklinks.user.js Install]
|style="width: 105px;"|updated 2009-08-30
|original author Vaevictus
|-
|colspan=3|Adds a menubar to the top of the UD screen, making it easier to select a few common actions. I've added quite a few additional buttons to the menubar, negating the need to have the buttons under the minimap for the Wiki, FAQ, Skills, Contacts, and others. I've also fixed a few minor bugs, changed the appearance slightly, and added it to a few more pages. If you're using it with [[#UD Zero Out Buttons|Zero Out Buttons]], this script needs to be executed first. This script will not be receiving any further updates.
|-style="font-size: .8em;"
|colspan=3|[http://www.aichon.com/dumpbox/ud_userscripts/screenshots/quicklinks1.png Screenshot]
|}
 
 
==<span style="color: #ffc; font-weight: bold;">To Do and Ideas</span>==
#A new menubar/HUD: While I've managed to modify QuickLinks to meet my needs for now, it's code is ugly and rather hackish. I'd love to take some time to rewrite it from scratch with better modularity and the ability to add or remove buttons more easily. Making it contextually aware would be a nice bonus too, since you don't always need all of the buttons displayed, and I'd really love to move the status info (i.e. HP, AP, XP, name) up there as well, just to clear up some more space.
#A new menubar/HUD: While I've managed to modify QuickLinks to meet my needs for now, it's code is ugly and rather hackish. I'd love to take some time to rewrite it from scratch with better modularity and the ability to add or remove buttons more easily. Making it contextually aware would be a nice bonus too, since you don't always need all of the buttons displayed, and I'd really love to move the status info (i.e. HP, AP, XP, name) up there as well, just to clear up some more space.
#Caddy Healer: There's already a script that's supposed to do this (where "this" is displaying a list of the lowest HP people in a convenient location), but it doesn't seem to work in Safari. I figure I can write one without too much difficulty. Might be fun to make a Caddy Killer as well for PKers. Hmm...
#Caddy Healer: There's already a script that's supposed to do this (where "this" is displaying a list of the lowest HP people in a convenient location), but it doesn't seem to work in Safari. I figure I can write one without too much difficulty. Might be fun to make a Caddy Killer as well for PKers. Hmm...
Line 53: Line 215:
#Survivor Table Sorter: UDToolbar had awonderful feature that allowed it to sort the list of survivors at the current location by their activity. I fully intend to implement this feature at some point, since I found it to be the best feature in UDToolbar. I've got a basic (i.e. buggy) version running right now, but haven't had a chance to work on it in the last few days.
#Survivor Table Sorter: UDToolbar had awonderful feature that allowed it to sort the list of survivors at the current location by their activity. I fully intend to implement this feature at some point, since I found it to be the best feature in UDToolbar. I've got a basic (i.e. buggy) version running right now, but haven't had a chance to work on it in the last few days.
#A way of coordinating recon within a group: UDBrain allows anyone using it to share data. It'd be nice if they had something like that, but just for groups. I don't think it's possible in Safari with just userscripts though, given the way that they lock things down.
#A way of coordinating recon within a group: UDBrain allows anyone using it to share data. It'd be nice if they had something like that, but just for groups. I don't think it's possible in Safari with just userscripts though, given the way that they lock things down.
|style="border: #565 solid 1px; padding-left: 5px; width: 271px;" valign=top|
[[#Original releases|<span style="color: #ffc">Original releases</span>]]
*[[#UD A-GPS Coordinates|<span style="color: #ffc">UD A-GPS Coordinates</span>]]
*[[#UD Better HP Colorizer|<span style="color: #ffc">UD Better HP Colorizer</span>]]
*[[#UD Same Character Highlighter|<span style="color: #ffc">UD Same Character Highlighter</span>]]
*[[#UD Survivor Aggregator|<span style="color: #ffc">UD Survivor Aggregator</span>]]
*[[#UD Zero Out Buttons|<span style="color: #ffc">UD Zero Out Buttons</span>]]
[[#Modified releases|<span style="color: #ffc">Modified releases</span>]]
*[[#AP Recovery Time Indicator|<span style="color: #ffc">AP Recovery Time Indicator</span>
*[[#Building State Colourizer|<span style="color: #ffc">Building State Colourizer</span>
*[[#Better Name Colorer|<span style="color: #ffc">Better Name Colorer</span>
*[[#Map Links|<span style="color: #ffc">Map Links</span>
*[[#QuickLinks|<span style="color: #ffc">QuickLinks</span>
*[[#Item Combiner, Organizer, and Sorter|<span style="color: #ffc">Item Combiner, Organizer, and Sorter</span>
*[[#UDMap|<span style="color: #ffc">UDMap</span>
|}

Revision as of 22:48, 19 October 2009

Aichon:Userscripts
Aichon
ˈīˌkän :Userscripts

Intro and support

While Urban Dead does a good job of supplying the player with all of their basic requirements to play the game, the interface leaves something to be desired. However, there is a solution. Thanks to the miracle of Greasemonkey for Firefox (and now GreaseKit for Safari and Greasemetal for Chrome), the players can take control of their own interfaces, making them look however they want and adding plenty of extra functionality to boot. If you need help installing or setting up Greasemonkey/Kit/Metal, I'm not the guy to ask. Once you get it installed though, you should be able to just click on the Install links I provide below to start using the scripts.

If you like my scripts and find that you're using them, I highly suggest clicking the watch link at the top of the page, then periodically checking your Watchlist for any changes to this page. If a script you like has been updated, just click the Install link for it again, and you should get the new version of it automatically.

I have tested these scripts exclusively in Safari for Mac using GreaseKit. They should all work in Greasemonkey. Greasemetal seems to have less functionality implemented, so I can't make any promises for it, but most of my scripts are pretty simple, so I'm guessing they should work. If you run into any trouble with the scripts, make sure you're using the latest version of the script, and if the issue persists, please contact me via my talk page so we can try to troubleshoot it there. I'll say right now that I don't have much patience for people who ignore answers that have already been posted in plain sight, so please don't be one of those people.

I have begun editing and creating a variety of userscripts to replicate the functionality of some of the Firefox extensions I've seen. Most of them are just minor aesthetic changes, but several of them greatly enhance the look and feel of the game to such an extent that it is hard to go back after having used them. I claim no credit for the work done on the modified releases by their original authors. I've also generally been lazy with updating the comments at the top of the code in them, so most of them don't have me listed as a contributor or have the changes I made listed.


Original releases

UD A-GPS Coordinates

Install updated 2009-09-01 version 1.0.1
Like several other GPS scripts, it simply displays the GPS coordinates for your character next to the suburb name above the minimap. I felt this was necessary since I noticed logical errors in some of the other GPS scripts I was using, and also did not appreciate their approach to handling the problem. Please note that this script does not work with Midianian's Urban Dead Map Links script. I've posted a modified version of his script below that works with this script.
Screenshot


UD Better HP Colorizer

Install updated 2009-10-02 version 1.0
Colorizes the HP value for each character based on how high their HP is and declutters things by removing the actual "HP" text from next to the character's name. Colors range from peach at nearly-full HP to reddish-pink at 1 HP. It works best when it's paired with a script that modifies the character links from their original pink color to something else (such as the Better Name Colorer script, below), that way the HP values contrast more, instead of blending in. It currently does not do anything when you're zombified and using Scent Blood (planning to change this at some point). Credit goes to Sean Dwyer for the original concept.
Screenshot, (with Better Name Colorer), Screenshot, (with Better Name Colorer)


UD Same Character Highlighter

Install updated 2009-09-12 version 1.0.1
When you log in, you're sometimes greeted by a long list of actions that happened while you were away. Especially annoying is when you see that several dozen of them were done by "a zombie," with no indication offered of which zombie did what. This script is configured such that mousing over a character will underline all links to that character on the page, allowing you to see just who was responsible for what. It works with survivors too, of course.


UD Survivor Aggregator

Install updated 2009-09-28 version 1.1.1
Rather than displaying the names of the first 4-5 survivors at your location on the minimap, this script will display a count of the number of survivors. Essentially, just like how zombies show up on the minimap, except for survivors. By design, it doesn't count the survivors at neighboring blocks, just at your current block, but if people want that as an option, I might be up for coding it.
Screenshot


UD Zero Out Buttons

Install updated 2009-08-29 version 1.0.1
Simply removes the buttons under the minimap to things like the Wiki, the FAQ, your Skills page, Contacts, etc. It's nice to have if you pair it up with QuickLinks or some other script that provides you access to those links anyway. If you don't have some other script that adds those links, I'd suggest avoiding this script. Also, make sure this script executes last. If you're using GreaseKit with the rest of my scripts, you're probably okay since they execute in alphabetical order (if you're using other people's scripts as well, and they started with something that comes after "UD Zero" alphabetically, you may have issues). If you're using Greasemonkey, move it to the bottom of the execution list, that way it comes after QuickLinks and most of the other scripts, otherwise you'll possibly run into issues.


Modified Releases

AP Recovery Time Indicator

Install updated 2009-08-30 original author Sean Dwyer
Displays an estimate (accurate to within 30 minutes) of when your AP will be fully recovered. I wish I could configure it to determine when the AP tick would occur, but GreaseKit doesn't support the GM_* functions at the moment, so I don't see how I can program it to remember when the character's tick would occur. It borrows code from a few extensions and userscripts, though I'll probably rewrite it with entirely original code at some point.
Screenshot


UD Building State Colourizer

Install updated 2009-09-29 original author Midianian
Colorizes some of the text on the page pertaining to barricade levels, generator/radio statuses, and a handful of other useful events. A few of the color and style choices "shouted" too much for my tastes, so I've modified almost all of them to provide better contrast on the screen and also to only "shout" when necessary. I also added the functionality to underline text.
Screenshot


Better Name Colorer

Install updated 2009-09-07 original author gurujery
Uses different colors for characters that are in your contacts list. Essentially, the colors are more muted (almost pastel) in color, which greatly increases the contrast and makes their names much easier to read, in my opinion. I'll probably be changing this into a general custom CSS loader eventually, rather than restricting it to just name colorizing.
Both with Better HP Colorizer: Screenshot, Screenshot


UD Item Combiner, Organizer, and Sorter

Install updated 2009-10-12 original author Midianian
An absolutely incredible script that makes your inventory usable by rearranging and combining buttons. I modified it slightly to hide some useless buttons that just waste your AP, and I'll be modifying it more as time goes on, but it's a great script. I can't speak highly enough of it, since it makes the game much more playable.
Screenshot


UDMap

Install updated 2009-10-16 original author Janzak
Displays an additional set of minimaps under the main map, allowing you to see your current suburb, as well as any other suburb. I modified the appearance slightly, have started adding Necrotech buildings to the dataset (currently about 40% done), and fixed an error in the way that it calculated your location (2009-10-17: fixed another one as well).
Screenshot


UD Map Links

Install updated 2008-08-30 original author Midianian
Displays links to the wiki and Red Rum maps for the suburb you are currently in. The only change I made was to allow it to play nice with my A-GPS script.
Screenshot


QuickLinks

Install updated 2009-08-30 original author Vaevictus
Adds a menubar to the top of the UD screen, making it easier to select a few common actions. I've added quite a few additional buttons to the menubar, negating the need to have the buttons under the minimap for the Wiki, FAQ, Skills, Contacts, and others. I've also fixed a few minor bugs, changed the appearance slightly, and added it to a few more pages. If you're using it with Zero Out Buttons, this script needs to be executed first. This script will not be receiving any further updates.
Screenshot


To Do and Ideas

  1. A new menubar/HUD: While I've managed to modify QuickLinks to meet my needs for now, it's code is ugly and rather hackish. I'd love to take some time to rewrite it from scratch with better modularity and the ability to add or remove buttons more easily. Making it contextually aware would be a nice bonus too, since you don't always need all of the buttons displayed, and I'd really love to move the status info (i.e. HP, AP, XP, name) up there as well, just to clear up some more space.
  2. Caddy Healer: There's already a script that's supposed to do this (where "this" is displaying a list of the lowest HP people in a convenient location), but it doesn't seem to work in Safari. I figure I can write one without too much difficulty. Might be fun to make a Caddy Killer as well for PKers. Hmm...
  3. Building State Colourizer: Again, contextual awareness. While having the doors open and the barricades down might be something calling for red text for survivors, it might be better to have green for zombies. Other similar examples exist. It might require a complete rewrite though. Not sure.
  4. Survivor Table Sorter: UDToolbar had awonderful feature that allowed it to sort the list of survivors at the current location by their activity. I fully intend to implement this feature at some point, since I found it to be the best feature in UDToolbar. I've got a basic (i.e. buggy) version running right now, but haven't had a chance to work on it in the last few days.
  5. A way of coordinating recon within a group: UDBrain allows anyone using it to share data. It'd be nice if they had something like that, but just for groups. I don't think it's possible in Safari with just userscripts though, given the way that they lock things down.

Original releases

Modified releases

  • [[#AP Recovery Time Indicator|AP Recovery Time Indicator
  • [[#Building State Colourizer|Building State Colourizer
  • [[#Better Name Colorer|Better Name Colorer
  • [[#Map Links|Map Links
  • [[#QuickLinks|QuickLinks
  • [[#Item Combiner, Organizer, and Sorter|Item Combiner, Organizer, and Sorter
  • [[#UDMap|UDMap