User:Midianian/Userscripts

From The Urban Dead Wiki
Jump to navigationJump to search
Toolbox
User Talk Userscripts
Greasemonkey et al.
Workshop Archives

Some time ago I installed Greasemonkey, and subsequently got rid of UDtool. I never really liked UDtool, it was too big and clunky (I didn't like the other available extensions either, as they were even bigger and clunkier). Recently I found out that the same scripts can be used in Opera (through user scripts), Google Chrome (through user scripts or Greasemetal), Safari (through GreaseKit) and Internet Explorer (through GM4IE).

With little work the scripts became compatible with Opera and Chrome. The scripts are untested on GreaseKit as I couldn't install it on Windows and I don't have a Mac, but I think they should work. The design of GM4IE is a bit stupid and I couldn't get the scripts to work on it. Well, three out of five ain't bad.

The scripts I wrote are separate (instead of one big script) for several reasons: 1) makes it easier to disable a specific feature, 2) if one script doesn't work, the others are unaffected, and 3) compatiblility with other scripts/extensions.

As I no longer play Urban Dead, I found it hard to take the time to update these, so Aichon has promised to maintain most of these for now. See Aichon's page for possible updated versions of these scripts.

Scripts

UDICOS

Screenshot Version: 1.2 Last updated: 2009-01-30

May be out of date, see Aichon's page for a possible updated version.

Urban Dead Item Combiner, Organizer and Sorter. Does what the name says, plus it calculates the total shots you have in your pistols, shotguns and pistol clips.

I liked UD item organizer v0.4 in general, but there were some problems with it and since it was obfuscated, I couldn't fix it. So, I got v0.3, which wasn't obfuscated, and fixed that. Now it includes all the functionality of 0.4, and more.

Version history:

  • 1.2:
    • added NecroTech syringe to Science (a syringe is named like this if you lack NT skills)
    • unknown items should work properly now
  • 1.1:
    • items matched with regular expressions (most of the decorations) didn't work. now they do
  • 1.0:
    • complete rewrite to make compatible with Opera and Google Chrome
    • merged "Medical" category to "Science"
    • all carried radios are now shown entirely separately, so that each of their frequencies can be adjusted individually
    • syringes are no longer dumped to Unknown when the character doesn't know how to revive
    • christmas trees and lights added, though not tested
    • unrecognized items are preserved as they are, and not combined
    • "drop item" list is also sorted and duplicates removed
  • 0.5: (differences to the unobfuscated 0.3)
    • new category: decorations
    • shows total shots for pistol clips, similar to pistols
    • alphabetically sorts items inside categories
    • inventory header now looks same as without the script (also in 0.4)
    • shows encumbrance percentage (also in 0.4)
    • added flavour-melee weapons (also in 0.4)


UDML

Screenshot Version: 1.3 Last updated: 2008-09-28

May be out of date, see Aichon's page for a possible updated version.

Urban Dead Map Links. Inserts links to both RedRum's and the wiki's maps next to the suburb name. RedRum's link isn't shown in Monroeville.

Version history:

  • 1.3:
    • Opera and Chrome compatibility.
  • 1.2:
    • some two-part suburb names had the latter part in lowercase, which caused problems
  • 1.1:
    • standardized and cleaned up the code. works now on FF 3.0.
  • 1.0 (unavailable due to fuckup)


UDPL

Screenshot Version: 1.4 Last updated: 2009-03-18

If this script no longer works, you may ask Aichon to see if he can fix it.

Urban Dead Profile Links. Inserts two links after a character's profile link; one to their Rogues Gallery page, and another to add them to contacts. If they already are a contact, the latter link removes them. Works in the area description box, DNA scans, and in the "Since your last turn:" listing.

Version history:

  • 1.4:
    • more compatibile with other extensions
    • code cleanup
  • 1.3:
    • Opera and Chrome compatibility.
  • 1.2:
    • now works also on contacts page
  • 1.1:
    • contacts now have '-' to remove them
    • all profiles in "Since your last turn:" should work now
    • link formatting chaged, now smaller and doesn't change line height
  • 1.0


UDRB

Version: 1.3 Last updated: 2009-06-15

If this script no longer works, you may ask Aichon to see if he can fix it.

Urban Dead Refresh Button. Inserts a "Refresh" button as the second button on the row of possible actions.

Version history:

  • 1.3:
    • if the page is "?zoom"ed (listing all players when more than 50 present), the refreshed page is also zoomed
    • button also available on the "out of AP" screen
  • 1.2:
    • Opera and Chrome compatibility.
  • 1.1:
    • placement-bug fixed
  • 1.0


UDBSC

Screenshot Version: 1.3 Last updated: 2008-10-05

Is slightly out of date, see Aichon's page for an updated version.

Urban Dead Building State Colorizer. Colorizes a building's door, darkness, ransack and ruin status, presence, damage-level and status of machinery, and barricade level.

Version history:

  • 1.3:
    • new phrases: "low on fuel", "only has a little fuel left", "enough to power"
    • changed machinery highlighting because "damaged" could also be found elsewhere in building descriptions
    • fix: spraypainted messages were still highlighted
    • "ransacked" in museums in the description "ransacked by looters" is no longer colourized
  • 1.2:
    • Opera and Chrome compatibility.
  • 1.1:
    • machinery damage-level now highlighted
    • doesn't highlight phrases in spraypainted messages anymore
    • colours tweaked
  • 1.0

Phrases and Colours

lights out - extremely heavily barricaded - very heavily barricaded - heavily barricaded - very strongly barricaded - quite strongly barricaded - lightly barricaded - loosely barricaded - have been secured - left wide open - ragged rectangle has been cut - opens directly onto the street - ransacked - has been ruined - has fallen into ruin - are ruined - badly damaged portable generator - damaged portable generator - battered portable generator - dented portable generator - badly damaged radio transmitter - damaged radio transmitter - battered radio transmitter - dented radio transmitter - portable generator - radio transmitter - is out of fuel - powered-down - is running - powering - enough to power - low on fuel - only has a little fuel left


UDVL

Version: 1.3 Last updated: 2009-02-05

Is out of date, see Aichon's page for an updated version.

Urban Dead Victim Link. Creates a link to the profile database from the victim of an observed kill.

Version history:

  • 1.3:
    • no longer messes with speech
    • getting dragged yourself is no longer linked
  • 1.2:
    • feeding drag victims also linked
  • 1.1:
    • Opera and Chrome compatibility.
  • 1.0

UDRA

Version: 1.0 Last updated: 2008-12-21

May be out of date, see Aichon's page for a possible updated version.

Urban Dead Radio Accelerator. Allows you to retune your handheld radios for just one AP and IP hit instead of the normal two. Note: Tested only with Firefox. If used with UDICOS, this must be executed after it. In Greasemonkey the execution order can be changed in the "Manage User Scripts" window. In Chrome and Opera the scripts are executed in alphabetical order, which is the correct one.