electricjonny on DeviantArthttp://creativecommons.org/licenses/by-nc-sa/3.0/https://www.deviantart.com/electricjonny/art/dAmn-Autojoin-340971511electricjonny

Deviation Actions

electricjonny's avatar

dAmn Autojoin

Published:
7.3K Views

Description

Update
By popular demand, this now offers an option to autojoin once the page loads, or autojoin manually with /autojoin. It waits 8 seconds after the page loads, and if people are having issues with it messing up or causing the logon to fail, let me know and I can work on it. But it seems to work well for me and my slow connection, with the dAmn.ws script. Update from the link below if you want this option.

There's an extension for Firefox to let you autojoin chat rooms on dAmn, and I made a Chrome extension to do the same (although it really sucks), but I thought that a script would be better. An extension is a bit overkill for such a simple thing to do on one webpage.

This should be pretty self explanatory. The only thing to know is that there's no buttons or UI to autojoin yourself or get to the configuration page. To get to the configuration page, you type /autojoinEdit into the chats, like any other /command (just remember that it's /autojoinEdit, with a capital E. Don't forget that you can hit /au+tab to automatically get to those two commands). Once you've set up the rooms you want to autojoin and hit save, you can then press /autojoin to join all of the rooms.

While in the configuration page , you can remove all of the rooms by hitting that button (and hitting save to finalize it), and also click on rooms to remove just that room or move them up or down in the list to get your rooms in the order you want. Typically, you would start out on the chat page you want first in your list rooms, and then add each room after that in the autojoin list. So for example, I join #h3lp | #h3lpers | #developingdevelopers | #electricjonny | #seniors | #devart | #notdevart, so I have chat.deviantart.com/chat/h3lp bookmarked and join that room, then join the rest with this script like shown in the image above.

The rooms can't start with a # either. Just the roomname, like devart or seniors. If you try to add a # the input border goes red and the Add button disables. The only special character allowed is - (and not at the start or end) and only A-Z, a-z, 0-9 are allowed. I'm pretty sure those are the limitations to room names, but if you know of a #-strangeroom name, let me know and I can adjust this.

To install:
This has been tested and works in the latest Chrome and Firefox (Firefox with Greasemonkey), but in order to install this in Chrome, you need to install it within the Tampermonkey extension.  If you don't know how to do that, then give up now.  I won't help you with installing scripts into Tampermonkey.  Toying with a browser and scripts like this isn't for the faint of heart and you need to be at least a bit technologically inclined.

The file is located here dAmn Autojoin.user

Let me know if there are any bugs or questions or anything. I'm pretty sure it's bug free, but I could be wrong :)

--
And for those looking at the JavaScript here, yes, this is probably some badly organized js. Probably could have made some functions to simplify things and cleaned up the var names and HTML/CSS here. But it works, so whatever :B
Image size
276x528px 21.45 KB
Comments152
Join the community to add your comment. Already a deviant? Log In
NickKartha's avatar
Am I the only one left who visits #developingdevelopers anymore.