electricjonny on DeviantArthttps://www.deviantart.com/electricjonny/art/deviant-Messages-Anywhere-437175992electricjonny

Deviation Actions

electricjonny's avatar

deviant Messages Anywhere

Published:
2.7K Views

Description

Update 7/11/2015


I've updated this to include group stacks.  dA recently made group stacks its own thing in a different category from regular deviations, so I've accounted for that here.  When a group stack only has one deviation in it, you won't see the border like at the top of this screencap.  But if a group stack does have more than one deviation in it, you'll get the fancy border I made.  Now this border may not look so great with semi-transparent thumbs or emoticons, but I decided that since most art will be rectangle and solid, I went with this (the border is just made up with border-image:;, which I think is better than dA's way of adding a lot of tags and styling it that way.)

I've also updated the logo so it matches with dA's new logo and fiddeled with how it shows up on new messages.  Hopefully it works better now.

You need Firefox and Greasemonkey for this to work.  It works in Chrome (or should) but Chrome is stupid and requires that scripts be submitted to their store.  Not doing that :roll:  Simply download this file devMessAny.user and then drag the devMessAny.user.js file into Firefox.

Let me know how it works :)

Another update


Updated to account for commission messages, which appear as NC - Name Changes.  But you'll get the right info in the preview and the settings will now say Name Changes & Commissions.

Update:


So take a read of this and you'll know of the changes :)

Hey :)

This is a script similar to the few extensions out there that notifies you of messages you get here.  But this is just a script.  Now this script works on all sites, and on the "about:blank" page of Firefox.  Because of how Greasemonkey works, it does not work on all about:* pages, but that is just how things work.  Also, because of the cross site scripting I am doing here, this only works on Firefox with Greasemonkey, or Chrome with Tampermonkey.

This (I hope) is pretty self explanatory, but the only real thing to keep in mind is that to see your messages, hover a 27x30px are at the bottom left of your page.  That will enable the box showing your messages to show up.  You can then also click on messages to get a preview of what they are.  It shows a max of 10 messages (due to not working very well showing more).  You can also click the options button, at the far right, to only receive updates on certain types of messages.  You can also set it to only work on the deviantart.com domain, or all domains.  And you can set how often to check for messages, along with setting a noise alert when you get new messages.

These settings are all saved by the Greasemonkey/Tampermonkey GM_setValue, so any setting you make will stay the same.  I wish I could have made this using standard JS, and not the GM_ prefixed functions, but because this works on any site, and needing to "look at a certain webpage" from dA, I had to use some custom functions.

You will also be alerted, via sound (if you enable that) and the bar popping up when you receive new messages.


Anywho, let me know what you think :)  And by the way, if you see anything surrounded by a %, let me know.  I have tested many kinds of messages, but there could be a few I didn't catch, and that will make the previews not as clear as they should appear in your message centre.

To install:



Simply go to here 99.82.244.140/code/devMessAny.… And yes, because of the way this script works, it will not work in the standard Chrome browser.  You must use the Tampermonkey script.  And to install this into Tampermonkey, you have to view the code source and paste that into the "Add a new script" option, from within that extension.  Just control+A on the script page, copy it, then paste it in.  I don't normally use Chrome, so I have not tested much, but it seems to work.

Also take note: Yes, I could have made group messages work, but I tried that, and it was rather muddy.  So no, this will not alert you to group messages, just the main ones in your inbox.  Also, you can click the dA logo at the far left to open your messages (in a new tab).

Also take note: While I've tried to keep the links and styling of the preview the same across sites, there may be some sites that override the styles, particularly on links colors and such.
Image size
1324x1740px 544.83 KB
© 2014 - 2024 electricjonny
Comments65
Join the community to add your comment. Already a deviant? Log In
MistressSvedka's avatar
The script claims that I am not logged in when I am, and even by following the provided link and logging in again does not work; It just asks me to log in again. Could this please be fixed? I use GM on Firefox/Windows7.