Welcome to Tactical Gamer

+ Reply to Thread
Results 1 to 15 of 15
Discussion: General Forums / Hardware & Software Discussion - Ribbon Titles (greasemonkey script) - Originally Posted by WhiskeySix Another "simple" script someone might try is a "Ribbon Identifier" script.
  1. #1

    jmaker's Avatar

    Join Date
    Jan 2006
    Location
    Warren, OH
    Age
    32
    Posts
    3,069

    Ribbon Titles (greasemonkey script)

    Quote Originally Posted by WhiskeySix View Post
    Another "simple" script someone might try is a "Ribbon Identifier" script. Since we're no longer using the BB-code for ribbons, it'd be nice to have pop-ups indicating what each ribbon is. The script would go through the page and enter the ribbon name as the title... (an objects title is what pops up when you mouse-over it). This way, when you mouse over a ribbon, you can see what it's for. (If you really wanted to get fancy, you could also make the ribbon img clickable - linking to the awarding page for that ribbon)
    With inspiration from my mentor I gave it a whirl and here's what I came up with - ribbontitles.user.js

    Basically it just takes the image name squadleader2 of http://www.tacticalgamer.com/images/...uadleader2.jpg and the script adds that name as the title attribute in the image.

    TO DO:
    • Complete - Pretty up the text a bit. I'm not sure how I could do that yet, but I'll look into it. Ex. some ribbons are kit-anti-tank-class1. Just make it say Anti Tank Class 1 or something.
    • Linkify each ribbon back to its respective page
    Last edited by jmaker; 06-10-2007 at 12:14 AM.
    |TG-12th| jmaker

  2.  
  3. #2

    WhiskeySix's Avatar

    Join Date
    Oct 2005
    Posts
    13,482
    Blog Entries
    1

    Re: Ribbon Titles (greasemonkey script)

    woah!!! slick!!!!


    Only way I can think of to do #1 is a bunch of if statments... kinda like the way the Forum Icon thing works...

    |TG-12th|WhiskeySix

  4.  
  5. #3

    jmaker's Avatar

    Join Date
    Jan 2006
    Location
    Warren, OH
    Age
    32
    Posts
    3,069

    Re: Ribbon Titles (greasemonkey script)

    UPDATE:

    Ok it looks like I've got the text figured out. It should be clean now. Just hover over Whiskey's ribbons in his signature to see how it looks. Note that these are the ribbons from http://awards.tg7th.com/ribbons/show-all.php. If anyone has any ribbons displayed from http://www.tacticalgamer.com/images/ribbons and the title text does not display, it's because I can't even access that page to get a complete list.

    Original file updated. I'm still working to linkify the ribbons.
    |TG-12th| jmaker

  6.  

     
  7. #4

    WhiskeySix's Avatar

    Join Date
    Oct 2005
    Posts
    13,482
    Blog Entries
    1

    Re: Ribbon Titles (greasemonkey script)

    hmmm... seems a lot of people have the ribbons in this format:

    http://www.tacticalgamer.com/images/ribbons/outstanding-volunteer.jpg

    (which I guess is what's generated by the BB code such as [volunteer]?)

    J - for any unrecognized images, is it possible for it to just pop up the name of the .jpg instead of "undefined"?

    |TG-12th|WhiskeySix

  8.  
  9. #5


    Join Date
    Jan 2006
    Location
    United states, TN
    Age
    39
    Posts
    3,072

    Re: Ribbon Titles (greasemonkey script)

    Very slick! Thanks Jmaker.
    Retired 6th DB

  10.  
  11. #6

    jmaker's Avatar

    Join Date
    Jan 2006
    Location
    Warren, OH
    Age
    32
    Posts
    3,069

    Re: Ribbon Titles (greasemonkey script)

    UPDATE:

    Original script updated with links to each respective ribbon thread within the forums. Some ribbons don't have a thread, so the link will just default to that parent forum.

    Quote Originally Posted by WhiskeySix View Post
    hmmm... seems a lot of people have the ribbons in this format:

    http://www.tacticalgamer.com/images/ribbons/outstanding-volunteer.jpg

    (which I guess is what's generated by the BB code such as [volunteer]?)

    J - for any unrecognized images, is it possible for it to just pop up the name of the .jpg instead of "undefined"?
    Yeah I know about that. We need one repository for all ribbons. If I could actually see all images in http://www.tacticalgamer.com/images/ribbons that would help me as well. If anyone has ribbons from here: http://awards.tg7th.com/ribbons/show-all.php, those should work.

    Let me see if I can't get a workaround on this issue. I should be able to just default it the name of file like you said Whiskey. Is there anyway you can update my original post?
    |TG-12th| jmaker

  12.  

     
  13. #7

    jmaker's Avatar

    Join Date
    Jan 2006
    Location
    Warren, OH
    Age
    32
    Posts
    3,069

    Re: Ribbon Titles (greasemonkey script)

    UPDATE:

    Orginal file updated. The script should now just display the filename no matter where it's located. Let me know if it works for everyone.
    |TG-12th| jmaker

  14.  
  15. #8

    WhiskeySix's Avatar

    Join Date
    Oct 2005
    Posts
    13,482
    Blog Entries
    1

    Re: Ribbon Titles (greasemonkey script)

    Awesome!! Yep pop-ups and links seem to work great!

    |TG-12th|WhiskeySix

  16.  
  17. #9

    HBrutusH's Avatar

    Join Date
    Jul 2007
    Location
    UK, and proud of it!!
    Age
    19
    Posts
    374

    Re: Ribbon Titles (greasemonkey script)

    bumpety-bump,

    this looks kinda cool, I always wonder what the people are actually good at or if they just like all the colours. (<That IS spelt right)

    and, for all us firefox illiterates, can you tell me how to 'install' it? Clicking the link just brings up a page of code.
    <<<<Magic!!




    -F- Concr3te: "Brutus, goddammit, shut up!"

  18.  

     
  19. #10

    Lorian's Avatar

    Join Date
    Feb 2006
    Location
    United Kingdom
    Age
    21
    Posts
    2,050

    Re: Ribbon Titles (greasemonkey script)

    You need to install the Greasemonkey extension first (Google it) then revisit the script, there should be a yellow bar at the top asking if you want to install it.

    I think this script might be somewhat irrelevant soon though.
    |TG| Lorian
    Member since 18th February 2006


  20.  
  21. #11

    Ghost Dog's Avatar

    Join Date
    Mar 2007
    Location
    Belgium
    Age
    29
    Posts
    1,851

    Re: Ribbon Titles (greasemonkey script)

    I don't get it, I only see popups in Wimpinator 's sig... I am using IE6 here at work.

    Can somebody please explain what exactly I have to do to get this working. Thx

  22.  
  23. #12

    CingularDuality's Avatar

    Join Date
    May 2003
    Location
    Dallas/Ft. Worth area of Texas, USA
    Age
    37
    Posts
    18,761

    Re: Ribbon Titles (greasemonkey script)

    Quote Originally Posted by Ghost Dog View Post
    I don't get it, I only see popups in Wimpinator 's sig... I am using IE6 here at work.

    Can somebody please explain what exactly I have to do to get this working. Thx
    You have to be using the FireFox browser with the Greasemonkey extension for this script to work.

  24.  

     
  25. #13

    jmaker's Avatar

    Join Date
    Jan 2006
    Location
    Warren, OH
    Age
    32
    Posts
    3,069

    Re: Ribbon Titles (greasemonkey script)

    Yeah I guess whenever I posted this I assumed most people know what Greasemonkey is. I thought the ribbons system was overhauled thus making this script obsolete. But from reading that other thread that Ghost Dog bumped, I see that not all ribbons have the pop up enabled when hovered over. The ones in Apophis's signature do, but not some of the others.

    I too liked the ability to be able to hover over the ribbons to identify that ribbon. Until it all becomes automated within the forums you may use this little script as a stop gap, but you must have Firefox with the Greasemonkey extension installed. Even then it won't display every single ribbon, only ones I've entered into a predefined list within the script. So it won't show the one in Cing's signature. It's mostly just the Battlefield ribbons.
    |TG-12th| jmaker

  26.  
  27. #14

    nuckj's Avatar

    Join Date
    Aug 2007
    Location
    Charlotte, NC
    Age
    33
    Posts
    427

    Re: Ribbon Titles (greasemonkey script)

    So is anyone working on incorporating the hover over titles for the ribbons into the forums? I think it makes the ribbons alot more meaningful to be able to identify what each ribbon was awarded for. I feel like this is something that ribbon recipients throughout the community would like to see happen.

  28.  
  29. #15

    jmaker's Avatar

    Join Date
    Jan 2006
    Location
    Warren, OH
    Age
    32
    Posts
    3,069

    Re: Ribbon Titles (greasemonkey script)

    Yes they were working on it. I'm not sure what the status of that is now.
    |TG-12th| jmaker

  30.  

     

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts


  
 

Back to top