Go to Post People don't have to "get" it. They just have to know about it. Once they know about it, then they come to it, experience it, talk to it, learn it, then get it. - Taylor [more]
Home
Go Back   Chief Delphi > Other > FIRST-related Organizations > The Blue Alliance
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 12-03-2008, 01:02
Unsung FIRST Hero
Greg Marra Greg Marra is offline
[automate(a) for a in tasks_to_do]
FRC #5507 (Robotic Eagles)
Team Role: Mentor
 
Join Date: Oct 2004
Rookie Year: 2005
Location: San Francisco, CA
Posts: 2,030
Greg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond repute
[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.
Reply With Quote
  #2   Spotlight this post!  
Unread 17-03-2008, 22:50
divergentdave divergentdave is offline
Registered User
FRC #1816 (Green Machine)
 
Join Date: Jun 2006
Rookie Year: 2007
Location: MN
Posts: 35
divergentdave is a jewel in the roughdivergentdave is a jewel in the roughdivergentdave is a jewel in the rough
Send a message via AIM to divergentdave
Re: [TBA]: Greasemonkey Chief Delphi?

Done, here you go.

http://divergentdave.googlepages.com/tbalinker.user.js
__________________
Team 1816 - The Green Machine
Reply With Quote
  #3   Spotlight this post!  
Unread 18-03-2008, 18:58
Unsung FIRST Hero
Greg Marra Greg Marra is offline
[automate(a) for a in tasks_to_do]
FRC #5507 (Robotic Eagles)
Team Role: Mentor
 
Join Date: Oct 2004
Rookie Year: 2005
Location: San Francisco, CA
Posts: 2,030
Greg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond repute
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
  1. Get or use Mozilla Firefox.
  2. Install Greasemonkey. It will make you restart Firefox.
  3. Click the link to divergentdave's Chief Delphi TBA Autolinker script.
  4. Greasemonkey will ask you if you want to install the script. Say yes to the default options.
  5. You're done! Any time someone says "team ####" on Chief Delphi, it will link to the corresponding team page on The Blue Alliance!

Thanks divergentdave!
Reply With Quote
  #4   Spotlight this post!  
Unread 18-03-2008, 19:20
Kristian Calhoun's Avatar
Kristian Calhoun Kristian Calhoun is offline
Celebrating 20 years of 25
FRC #0025 (Raider Robotix)
Team Role: Mentor
 
Join Date: Oct 2005
Rookie Year: 2006
Location: No. Brunswick, NJ
Posts: 1,077
Kristian Calhoun has a reputation beyond reputeKristian Calhoun has a reputation beyond reputeKristian Calhoun has a reputation beyond reputeKristian Calhoun has a reputation beyond reputeKristian Calhoun has a reputation beyond reputeKristian Calhoun has a reputation beyond reputeKristian Calhoun has a reputation beyond reputeKristian Calhoun has a reputation beyond reputeKristian Calhoun has a reputation beyond reputeKristian Calhoun has a reputation beyond reputeKristian Calhoun has a reputation beyond repute
Send a message via AIM to Kristian Calhoun
Re: [TBA]: Greasemonkey Chief Delphi?

The linker can also be used in Opera (v8.0 and higher)!

To install:
  • Save divergentdave's Chief Delphi TBA Autolinker script (Right click, Save target as)
  • In Opera, go to Tools -> Preferences
  • In the "Advanced" tab, select "Content"
  • Click the "Javascript Options" button, and enter the directory of the saved script under "User JavaScript Files"
  • Hit OK - no restart required!
__________________
Raider Robotix: Home | Twitter | Facebook | Instagram
Brunswick Eruption: Home | Twitter | Facebook
Reply With Quote
  #5   Spotlight this post!  
Unread 15-04-2008, 00:43
Elgin Clock's Avatar
Elgin Clock Elgin Clock is offline
updates this status less than FB!
AKA: the one who "will break into your thoughts..."
FRC #0237 (Black Magic)
Team Role: Mentor
 
Join Date: May 2001
Rookie Year: 2001
Location: H20-Town, Connecticut
Posts: 7,773
Elgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond repute
Send a message via AIM to Elgin Clock
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!
__________________
The influence of many leads to the individuality of one. - E.C.C. (That's me!!)

Reply With Quote
  #6   Spotlight this post!  
Unread 15-04-2008, 02:19
artdutra04's Avatar
artdutra04 artdutra04 is offline
VEX Robotics Engineer
AKA: Arthur Dutra IV; NERD #18
FRC #0148 (Robowranglers)
Team Role: Engineer
 
Join Date: Mar 2005
Rookie Year: 2002
Location: Greenville, TX
Posts: 3,078
artdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond repute
Re: [TBA]: Greasemonkey Chief Delphi?

Quote:
Originally Posted by Elgin Clock View Post
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!
That would most likely be a very simple fix.

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);
Add in one extra line:

Quote:
var a = document.createElement("a");
a.setAttribute("href", 'http://www.thebluealliance.net/tbatv/team.php?team=' + match[2]);
a.setAttribute("target",'_blank');
a.appendChild(document.createTextNode(match[0]));
span.appendChild(a);
Note that I have not tested this yet.

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.)
__________________
Art Dutra IV
Robotics Engineer, VEX Robotics, Inc., a subsidiary of Innovation First International (IFI)
Robowranglers Team 148 | GUS Robotics Team 228 (Alumni) | Rho Beta Epsilon (Alumni) | @arthurdutra

世上无难事,只怕有心人.
Reply With Quote
  #7   Spotlight this post!  
Unread 16-04-2008, 23:52
daltore's Avatar
daltore daltore is offline
Electronics/programming/design
AKA: Aaron Osmer
FRC #3529 (ausTIN CANs)
Team Role: Mentor
 
Join Date: Dec 2007
Rookie Year: 2007
Location: San Antonio, TX
Posts: 272
daltore has a spectacular aura aboutdaltore has a spectacular aura aboutdaltore has a spectacular aura about
Send a message via AIM to daltore Send a message via MSN to daltore Send a message via Yahoo to daltore
Re: [TBA]: Greasemonkey Chief Delphi?

Yup, I added that line, works fine. Thanks divergentdave and artdutra04!
Reply With Quote
  #8   Spotlight this post!  
Unread 15-02-2009, 18:36
Elgin Clock's Avatar
Elgin Clock Elgin Clock is offline
updates this status less than FB!
AKA: the one who "will break into your thoughts..."
FRC #0237 (Black Magic)
Team Role: Mentor
 
Join Date: May 2001
Rookie Year: 2001
Location: H20-Town, Connecticut
Posts: 7,773
Elgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond repute
Send a message via AIM to Elgin Clock
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??
__________________
The influence of many leads to the individuality of one. - E.C.C. (That's me!!)

Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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


All times are GMT -5. The time now is 19:54.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi