GreaseMonkey'ing Cantr - customizing Cantr, clientside
Moderators: Public Relations Department, Players Department
-
- Posts: 311
- Joined: Thu Feb 05, 2009 4:56 am
GreaseMonkey'ing Cantr - customizing Cantr, clientside
This "userscript" changes the styling of events in Cantr, like so:
Non-chat is darkened, and emotes are tinted and italicized.
For people who what to customize more, I have it mark the entire event, character's names, "quoted" parts of events, and *emoted* parts of events. On top of this, Cantr already marks types of events (you could detect if it was a character talking, or a radio for instance) so there's lots of possibilities.
To use this you'll need either TamperMonkey(Chrome), GreaseMonkey(FireFox), or the equivalent for your browser.
Now get one of the versions of CVEE (this extension/userscript):
Basic Edition - This should work right away, like shown in the image above.
Advanced Edition - There's some instructions on the page to get you started (and the CSS to make it work like the Basic version) so you can make your own styles.
Non-chat is darkened, and emotes are tinted and italicized.
For people who what to customize more, I have it mark the entire event, character's names, "quoted" parts of events, and *emoted* parts of events. On top of this, Cantr already marks types of events (you could detect if it was a character talking, or a radio for instance) so there's lots of possibilities.
To use this you'll need either TamperMonkey(Chrome), GreaseMonkey(FireFox), or the equivalent for your browser.
Now get one of the versions of CVEE (this extension/userscript):
Basic Edition - This should work right away, like shown in the image above.
Advanced Edition - There's some instructions on the page to get you started (and the CSS to make it work like the Basic version) so you can make your own styles.
Last edited by AlchemicRaker on Sun Jan 17, 2010 4:06 am, edited 1 time in total.
-
- Posts: 2134
- Joined: Wed Apr 14, 2004 7:12 am
- Location: Quebec, Canada
- joo
- Posts: 5021
- Joined: Fri Jun 17, 2005 2:26 pm
- Location: London, UK
I have written a few scripts. Here is one for Cantr:
http://forum.cantr.org/viewtopic.php?p=375548
joo wrote:http://joo.freehostia.com/greasemonkey/Cantr.Interface.NotesCheckUncheckAll.user.js
This is a Greasemonkey script I wrote that adds a "Check/uncheck all" control to the multiple note operation screen, which should make it easier when large numbers of notes need to be moved.
That is, until something like this is actually implemented in the game.
http://forum.cantr.org/viewtopic.php?p=375548
- Litchin_flip
- Posts: 309
- Joined: Sat Jan 15, 2005 8:40 pm
- Location: BFE, Virginia
- EchoMan
- Posts: 7768
- Joined: Fri Aug 26, 2005 1:01 pm
- Location: Stockholm, Sweden
-
- Posts: 311
- Joined: Thu Feb 05, 2009 4:56 am
- Rob Maule
- Posts: 441
- Joined: Mon Jul 14, 2003 5:15 pm
- Location: Florida, USA
- Contact:
Sweet script, Natso. At first, I didn't think I could get it working in Chrome (just switched to the beta to allow addons). Eventually, I figured it out (I think). I use CantrSpy, which loads the page without the "www". So I just edited your script to include:
Code: Select all
// @include http://www.cantr.net/index.php?dt=*
// @include http://www.cantr.net/index.php?s=*
// @include http://cantr.net/index.php?dt=*
// @include http://cantr.net/index.php?s=*
-
- Posts: 311
- Joined: Thu Feb 05, 2009 4:56 am
Rob Maule wrote:Sweet script, Natso. At first, I didn't think I could get it working in Chrome (just switched to the beta to allow addons). Eventually, I figured it out (I think). I use CantrSpy, which loads the page without the "www". So I just edited your script to include:Code: Select all
// @include http://www.cantr.net/index.php?dt=*
// @include http://www.cantr.net/index.php?s=*
// @include http://cantr.net/index.php?dt=*
// @include http://cantr.net/index.php?s=*
Oh cool, I'll have to check out this CantrSpy. Also, I've gone and revised my uploaded script, so future people should not have this problem. (No need for you to update though, I did exactly what you did )
Cheers
- Natso
- Genevieve
- Posts: 2114
- Joined: Mon Jul 14, 2003 5:31 pm
- Location: Palm Springs, CA
- Contact:
-
- Posts: 311
- Joined: Thu Feb 05, 2009 4:56 am
- Kaizerwolf
- Posts: 42
- Joined: Fri Aug 28, 2009 10:00 pm
- Rob Maule
- Posts: 441
- Joined: Mon Jul 14, 2003 5:15 pm
- Location: Florida, USA
- Contact:
Genevieve wrote:Will this work in Firefox as well as IE?
For Internet Explorer, I think you'll need either Trixie or GM4IE first. I believe you'll also need to install Greasemonkey for Firefox, as well.
-
- Posts: 159
- Joined: Sun Sep 13, 2009 9:31 pm
- Location: Poland, Szczecin
I thougt that it would be better (for me) if emotes were slightly more different from normal 'clickable' links (ie. bold or different color), but ever time I click on 'Edit' button in Greasmonkey, it gives me blank notepad window and (translated, more less accurate) message:
Any help here?
System cannot find specified path
Any help here?
-
- Posts: 311
- Joined: Thu Feb 05, 2009 4:56 am
reve wrote:I thougt that it would be better (for me) if emotes were slightly more different from normal 'clickable' links (ie. bold or different color), but ever time I click on 'Edit' button in Greasmonkey, it gives me blank notepad window and (translated, more less accurate) message:System cannot find specified path
Any help here?
Don't use greasemonkey to edit the script. Goto my download link, right click and save it to your computer. Run notepad and open the script using notepad. It should be fairly easy to find the line to change the formatting... to apply it: save the file, window your browser, then drag & drop the file from the folder into the browser... it should let you install it then.
Cheers
- Natso
Return to “General Discussion”
Who is online
Users browsing this forum: No registered users and 1 guest