Page 1 of 15

GreaseMonkey'ing Cantr - customizing Cantr, clientside

Posted: Sat Dec 19, 2009 5:37 am
by AlchemicRaker
This "userscript" changes the styling of events in Cantr, like so:
Image
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.

Posted: Sat Dec 19, 2009 5:38 am
by Snake_byte
Looks good! :)

Posted: Sat Dec 19, 2009 5:48 am
by joo
I have written a few scripts. Here is one for Cantr:

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

Posted: Sat Dec 19, 2009 6:03 am
by Litchin_flip
It seems to work as intended.

Posted: Sat Dec 19, 2009 6:57 am
by EchoMan
Nice one. I have used stylish to alter Cantr into a "neutral" black on white looking webpage, as well as some other alterations, like everything is left justified, smaller fonts etc. I use it at work where something green/orange == not working. :)

Posted: Sat Dec 19, 2009 7:15 am
by AlchemicRaker
I think the next thing I should do is add a back button on all of those pages that don't have back buttons. I don't know where to expect it, so I get a lot of them. A todo for tomorrow, then.

Also, nice script, joo, using it now...

Posted: Sat Dec 19, 2009 8:25 am
by Rob Maule
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=*

Posted: Sat Dec 19, 2009 8:33 am
by AlchemicRaker
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 :D )

Cheers
- Natso

Posted: Sat Dec 19, 2009 2:52 pm
by Genevieve
Will this work in Firefox as well as IE?

Posted: Sat Dec 19, 2009 3:26 pm
by AlchemicRaker
Genevieve wrote:Will this work in Firefox as well as IE?

I created this in firefox, and I haven't tested this in IE.

Posted: Sat Dec 19, 2009 3:49 pm
by Kaizerwolf
That looks pretty slick man!

Posted: Sat Dec 19, 2009 3:54 pm
by Rob Maule
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.

Posted: Sun Dec 20, 2009 9:26 pm
by reve
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?

Posted: Sun Dec 20, 2009 9:41 pm
by AlchemicRaker
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

Posted: Tue Dec 22, 2009 1:09 am
by Cdls
Great script, thanks a lot :)