jnordberg / irccloudapp

Standalone IRCCloud desktop client for OS X
MIT License
150 stars 16 forks source link

Allow loading some irccloud browser extensions #12

Closed antifuchs closed 10 years ago

antifuchs commented 10 years ago

Outside Nimbus (which I love), I use the BufSwitch extension pretty heavily. It's just a JS file that gets run after the irccloud page loads. Is there a way to inject this into Nimbus's web view? If so, I'd really love if support for loading it could be added. I'm really not experienced at OS X/Objective C development, but happy to assist in any way I can.

antifuchs commented 10 years ago

It turns out that there is already a mechanism by which userscripts get loaded: Place them as .js files in ~/Library/Application Support/nimbus/Scripts/. This is perfect - thanks for building that in, folks! Closing (-:

digitalfiz commented 10 years ago

Hey @antifuchs I put the script for colored nicks in that folder and started nimbus and the nicks never started getting colors so I'm not sure it works...

antifuchs commented 10 years ago

@digitalfiz I tested with my fork of irccloud-bufswitch: https://github.com/antifuchs/irccloud-bufswitch/tree/make-next-buffer-relative and with the "automatically mark as read" userscript: https://github.com/raneksi/irccloud-alwaysmarkread - both of them work as they did for me in Chrome.

I suspect that some userscripts may be using chrome-specific features and are incompatible. I guess we could use a debug console to find out! (-:

digitalfiz commented 10 years ago

I checked the logs and the script gets loaded but it never colors the nicks so maybe ill work on a modified version of the script

keithah commented 10 years ago

Please do! I don't even have an irccloudapp.log for some reason.. And the userstyle scripts work, I finally have a dark background. Colored nicks would be super nice too.