Shop More Submit  Join Login
×




Details

Submitted on
March 14
Image Size
242 KB
Resolution
1262×1104
Submitted with
Sta.sh
Link
Thumb
Embed

Stats

Views
907 (2 today)
Favourites
10 (who?)
Comments
56
Downloads
3
×
deviant Messages Anywhere by electricjonny deviant Messages Anywhere by electricjonny

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.246.199/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.
Add a Comment:
 

The Artist has requested Critique on this Artwork

Please sign up or login to post a critique.

:icondays-be-strange:
days-be-strange Featured By Owner Aug 20, 2014  Student Writer
Works great. :) (Smile) 
Reply
:iconelectricjonny:
electricjonny Featured By Owner Aug 21, 2014  Hobbyist Photographer
Glad it works for you :)  It won't always look right on every website, but in general it should.
Reply
:icondays-be-strange:
days-be-strange Featured By Owner Aug 21, 2014  Student Writer
oh okay 

But I have to say it's really handy.
Reply
:iconelectricjonny:
electricjonny Featured By Owner Aug 21, 2014  Hobbyist Photographer
Thanks :nod:
Reply
:iconrotane:
rotane Featured By Owner Jun 25, 2014   General Artist
Hey man. Don't know of you know – or care – but here's a heads up nonetheless: On NinjaKit/Safari/OSX your script works flawlessly, with the exception of one thing: it doesn't play sounds. 
Reply
:iconelectricjonny:
electricjonny Featured By Owner Jun 25, 2014  Hobbyist Photographer
Oh actually, it might be the audio file type I'm using.  I'm using .ogg which may not work in all browsers.  I'll see if I can update that to work better.
Reply
:iconrotane:
rotane Featured By Owner Jun 25, 2014   General Artist
Oh! Yeah, that might be it. :)
.m4a will definitely work in safari. 
Reply
:iconelectricjonny:
electricjonny Featured By Owner Jun 25, 2014  Hobbyist Photographer
Ok the fix was actually easier than I thought.  Although I didn't actually test it with NinjaKit and Safari, but an html file with the same audio tag/data src seemed to work, and it still works the same in Firefox, so I'm hoping that it will fall back to the right m4a file since it's coded that way now.  Give it a try: electricjonny.com/code/devMess…

I tried NinjaKit, but after getting a rather unhelpful .safriextz file and having no idea what to do with it, I gave up :B
Reply
:iconrotane:
rotane Featured By Owner Jun 25, 2014   General Artist
You're the man, man! That seems to have done it. I've tested it on the settings pane, and the sound playes after a significant delay (well, 2–3 seconds), but it does play. :thumbsup:

Hmm, .safriextzon is basically was .xpi is for Firefox. The Windows version of Safari must be seriously lacking :P
Reply
:iconelectricjonny:
electricjonny Featured By Owner Jun 25, 2014  Hobbyist Photographer
Yeah I noticed a bit of lag, but lag is better than nothing =P

And yeah, the couple sites I googled for led me to the .safriextz file.  Seems that's a native-ish extension format for Safari?  Maybe only on the Mac.  I did a quick (too quick, but meh) google on how to install them, and after reading some mac.about.com article about double clicking on the file and recognizing the warning about "blablabla only install from people you trust", it seemed to me that I was missing something, and just gave up.

But oh well, if it works then it works :lol:
Reply
Add a Comment: