Greasemonkey script: Gameday Thread Timezone Conversion

Discussion in 'Site Discussion' started by Pseudo, Oct 23, 2009.

  1. Pseudo

    Pseudo L6: Sharp Member

    Messages:
    319
    Positive Ratings:
    149
    I wrote this Greasemonkey script:
    http://userscripts.org/scripts/show/60437

    It will convert the start times for each map in a gameday thread into your local timezone.

    [​IMG]

    The orange text is the text generated by the script.​

    It also adds a "download timer" to the map download links in the thread. A user must wait thirty seconds between file downloads, so the script adds a countdown timer for this. File links are grayed out until they are able to be downloaded.
    [​IMG]

    For those that don't know, Greasemonkey is a Firefox add-on that uses JavaScript to customize websites. It can be downloaded here. Chrome, Safari, and Opera have scripting capabilities as well but I have not tested the script in those browsers.
     
    • Thanks Thanks x 10
  2. Gerbil

    aa Gerbil

    Messages:
    575
    Positive Ratings:
    376
    Sounds very useful. Thanks!
     
  3. The Political Gamer

    aa The Political Gamer

    Messages:
    4,468
    Positive Ratings:
    1,684
    Oh wow thats really cool! :D Good job!
     
  4. Engineer

    aa Engineer

    Messages:
    1,166
    Positive Ratings:
    372
    Thank you! :)
     
  5. grazr

    aa grazr Old Man Mutant Ninja Turtle

    Messages:
    5,436
    Positive Ratings:
    3,573
    Very very useful. Especially since this forum seems to get my local time wrong all the time (well, daylight savings, atleast).

    Oh and welcome back to the community Pseudo. :)
     
  6. Trotim

    aa Trotim

    Messages:
    1,180
    Positive Ratings:
    997
    Well, I'm sure it could be handy if I had Firefox. I've never had any problems with the times on the forums though?
     
  7. gamemaster1996

    gamemaster1996 L13: Stunning Member

    Messages:
    1,065
    Positive Ratings:
    131
    Hmm i do but not on anything other than firefox hmm interesting

    Whatta ya know im turning into the racoon on timothy goes to school hmm interesing
     
  8. Swordz

    Swordz L5: Dapper Member

    Messages:
    224
    Positive Ratings:
    37
    It's not working here :/ I have greasemonkey but the plugin doesn't want to install


    EDIT: Installed now :D


    EDIT2: Wtf, i'm at GMT-3 but the timer shows GMT-6...
     
    Last edited: Oct 24, 2009
  9. Sgt.Sausage

    Sgt.Sausage L7: Fancy Member

    Messages:
    420
    Positive Ratings:
    103
    Wow thats awesome, definitely gonna try it out i haven't bothered with greasemonkey in a long time.
     
  10. Pseudo

    Pseudo L6: Sharp Member

    Messages:
    319
    Positive Ratings:
    149
    Is the rest of the forum set to that time? If you scroll to the bottom of the page it should say "All times are GMT __.", that's what the script uses to determine your timezone. You can change settings in your options.

    This made me laugh very hard. What the fuck is this guy talking about?
     
  11. AntonJ3000

    AntonJ3000 I am inactive and make horrible maps

    Messages:
    401
    Positive Ratings:
    89
    Nice job, Works fine, and makes it easier for me as I'm usually confused about timezones :p

    Also, It messed up on wednesday gameday thread. Not sure why, but here's a screenshot.
    [​IMG]
     
    • Thanks Thanks x 1
  12. Pseudo

    Pseudo L6: Sharp Member

    Messages:
    319
    Positive Ratings:
    149
    Yes, I noticed that bug as well.

    The script has been updated to fix it.

    The problem was an error in my regular expression that caused it to grab the start time as "1:00 AM" instead of "11:00 AM".
     
    • Thanks Thanks x 1
  13. Dr. ROCKZO

    Dr. ROCKZO L8: Fancy Shmancy Member

    Messages:
    580
    Positive Ratings:
    159
    Thanks! This should really help organizing more official Gamedays.
     
  14. Terr

    aa Terr Cranky Coder

    Messages:
    1,591
    Positive Ratings:
    405
    Or as I've been asking, the organizers could just post a dang link to a time-zone site inside the post, but I suppose making everyone install a client script works too :p

    The "event" of me posting this post should be at: Pick the area in which you live.

    Or make your own time.
     
    Last edited: Oct 29, 2009