|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||||
|
|||||
|
[TBA]: Greasemonkey Chief Delphi?
A random idea:
Wouldn't it be neat if a Greasemonkey script existed that added a hyperlink to The Blue Alliance's team page every time someone wrote "Team ####" on Chief Delphi? I don't have time right now, and I've never worked with Greasemonkey, but if anyone wants to give it a go... [Edit] Testing: Team 177 [/Edit] Last edited by Greg Marra : 18-03-2008 at 18:53. |
|
#2
|
|||
|
|||
|
Re: [TBA]: Greasemonkey Chief Delphi?
|
|
#3
|
|||||
|
|||||
|
Re: [TBA]: Greasemonkey Chief Delphi?
Chief Delphi TBA Autolinker
Divergentdave wrote a Greasemonkey script to auto convert when someone writes "Team ####" in a Chief Delphi post to be a link to the corresponding team page on The Blue Alliance. Installing
Thanks divergentdave! |
|
#4
|
||||
|
||||
|
Re: [TBA]: Greasemonkey Chief Delphi?
The linker can also be used in Opera (v8.0 and higher)!
To install:
|
|
#5
|
|||||
|
|||||
|
Re: [TBA]: Greasemonkey Chief Delphi?
Would there be any way to have the javascript enable another tab to be opened in FF when you click the team number link instead of opening in the same tab?
Other than that, it seems to be working fine! |
|
#6
|
|||||
|
|||||
|
Re: [TBA]: Greasemonkey Chief Delphi?
Quote:
In this part of the script: Code:
var a = document.createElement("a");
a.setAttribute("href", 'http://www.thebluealliance.net/tbatv/team.php?team=' + match[2]);
a.appendChild(document.createTextNode(match[0]));
span.appendChild(a);
Quote:
This should force the browser to open the link in a new window, which Firefox should default to open in a new tab instead. (Yeah, yeah, I know the target attribute is depreciated in XHTML, but I really don't care when it comes to Javascript until the new CSS3 standards come out, when they actually plan to implement a target-new: tab; CSS property for links.) |
|
#7
|
||||
|
||||
|
Re: [TBA]: Greasemonkey Chief Delphi?
Yup, I added that line, works fine. Thanks divergentdave and artdutra04!
|
|
#8
|
|||||
|
|||||
|
Re: [TBA]: Greasemonkey Chief Delphi?
Is there any way to disable this feature in FTC forums on CD?
I recently saw & clicked a link to a team mentioned in the FTC forums, & it was linking to an FRC team with the same number as the FTC team the person was talking about. ![]() Minor tweak... right?? ![]() |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Thanks to Chief Delphi | DougHogg | Thanks and/or Congrats | 6 | 23-04-2004 17:24 |
| Chief Delphi on T.V.! | Raven_Writer | Chit-Chat | 3 | 24-09-2003 15:36 |
| Chief Delphi 47 | archiver | 2001 | 5 | 24-06-2002 01:08 |
| Video of Chief Delphi 5? | archiver | 2000 | 0 | 23-06-2002 22:21 |