-
06-09-2007, 07:43 PM #1
Ribbon Titles (greasemonkey script)
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

-
06-09-2007, 08:27 PM #2
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
-
06-10-2007, 12:10 AM #3
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

-
06-10-2007, 11:58 AM #4
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
-
06-10-2007, 12:45 PM #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
-
06-10-2007, 02:08 PM #6
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.
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

-
06-10-2007, 02:47 PM #7
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

-
06-11-2007, 12:23 AM #8
Re: Ribbon Titles (greasemonkey script)
Awesome!! Yep pop-ups and links seem to work great!

|TG-12th|WhiskeySix
-
08-02-2007, 05:08 PM #9
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.
-
08-02-2007, 05:58 PM #10
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




-
12-20-2007, 06:47 AM #11
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
-
12-20-2007, 01:08 PM #12
Re: Ribbon Titles (greasemonkey script)
Become a supporting member!
Buy a Tactical Duck!
Take the world's smallest political quiz! "I was touched by His Noodly Appendage."
TacticalGamer TX LAN/BBQ Veteran:
-
12-20-2007, 10:13 PM #13
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

-
12-25-2007, 11:06 AM #14
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.
-
12-25-2007, 11:38 AM #15
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

Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)




Reply With Quote

<<<<Magic!!


|TG-6th|GhostDog









Bookmarks