deviant art

Deviant Login Shop
 Join deviantART for FREE Take the Tour
×

Shop Similar Prints

More from ~DJ-Zemar


×

9,354

571 257 0

Thank you, everyone, for the Daily Deviation! :D



2/24/2013 - Current Version: 1.6


Note: If you are having any login problems, please make sure you are using version 1.6 or higher. Thank you! :)



Description:


This is dAmnGotMail, an automatic inbox refresh script..
The purpose of this script is to automatically notify you of new messages in your inbox without having to reload the page; this is especially helpful when on the chat network.

The inspiration to make this script came from =Dediggefedde. He gave some extremely helpful advice; the script is also modeled on two of the functions used in his script Devsidebar which is an amazing piece of work. I have since released multiple changes to the original script and have further refined it, fixing any bugs and improving the design both in its code as well as aesthetically.

This script for Firefox (Greasemonkey) or Google Chrome, will automatically update your deviantART inbox located on your menu bar.

It does not interfere with the user menus, however, and is very simple.



How to install for Firefox:


First make sure you have Firefox with the Greasemonkey plugin.

If you do not have Greasemonkey, click here to get it now.

Once you have Greasemonkey, just:
>> Click here to go to the script home page! <<

Then just install the script, restart Firefox and enjoy!

How to install for Google Chrome:


First make sure you have Google Chrome (no plugins required).

First, download the script:
>> Click here to go to the script home page! <<

Next, right-click the "Install" button on the top right and click "Save link as.." to save it to any location on your computer.

Now go to chrome://extensions/ in your browser or go to Tools > Extensions.
Once there, drag the downloaded script onto the window. If it asks, tell it to Allow the script.

Once you have allowed and installed the script, just restart Google Chrome and enjoy!



Important Notice:


Make sure you have the Splinter Menu turned off before using this script. It was not designed for the Splinter Menu and will most likely cause undesired effects.

Change Log:


Version 1.6: Improved design, fixed Activity Stack and fixed Journal Stack.
Version 1.5: Fixed the 1 (1 Note) glitch and now it will only display 1 Note, 2 Notes, etc whenever you have notes and no other messages.
Version 1.4: Fixed a minor visual formatting error. Script will no longer miss a "bar" between certain items and the notes item.
Version 1.3: Separated Correspondence messages from the Feedback messages; this makes the script seem closer to the original inbox's look.
Version 1.2: Cleaned up the script a bit. Slightly increased stability.
Version 1.1: Fixed for Google Chrome. Runs better on both browsers.

Known Bugs:


Does not work with "Group Messages"



If you like my script, please just show your appreciation by adding this to your Favorites? It will help spread the word so my script can slowly help deviantART more and more! :)

You may also Donate if you feel inclined to do so.. :meow:

Details

Stats

Submitted on
January 26
Image Size
12.7 KB
Resolution
270×270
Views
9,354
Favourites
571 (who?)
Comments
257
URL
Thumb
Embed
Only verified accounts can report policy violations. Please check your email and click on the verification link.
* Required field
Add a Comment:
 

Daily Deviation

Given 2013-02-08
love 1 1 joy 3 3 wow 0 0 mad 0 0 sad 0 0 fear 0 0 neutral 0 0
:iconlogeg:
=logeg May 1, 2013  Hobbyist General Artist
Hi there, competitor :)
Reply
:icondj-zemar:
~DJ-Zemar May 1, 2013  Hobbyist Digital Artist
Ah, so someone else tried it.. Good to know I'm not the only one lol
Though it's not much of a competition if I'm not looking to only target chrome.. Plus I don't want to make it a plugin since some people aren't that dAmn crazy lol :D
Your plugin looks pretty good though. What would really impress me is if you found a way to ALSO retrieve group mail, as it is an additional inbox in itself to check. If you find that out, give me a call.. I've tried thinking of a logical way to implement it for a while =P
Reply
:iconlogeg:
=logeg May 1, 2013  Hobbyist General Artist
Basically, do the same get_folders request as you do, but take all entries.

If I don't know whether a folder is just a folder or a group, I query (normally, just once per browser session) the actual message center page. It has embedded info on whether it's a group or not and I can get that by regexes.

Then it works like the inbox, just use another folder ID in get_views.
Reply
:icondj-zemar:
~DJ-Zemar May 1, 2013  Hobbyist Digital Artist
I don't do this only because it has caused login problems in the past with my script..
That's why I have currently lost my DD award for it, at least, until they reinstate it.
For some reason, because it read a copy of the http://www.deviantart.com/messages/# page, it would throw errors with the login I guess? People were having cookie errors, couldn't log in, etc.
After getting a few users to switch to version 1.6 where it uses all Difi for the inbox information, it worked fine lol.
So like mentioned in the other message, sadly I would have to figure out the ugly hack in order to find group messages without the chance of the cookie bug.
Reply
:iconlogeg:
=logeg May 1, 2013  Hobbyist General Artist
Then again, maybe you can cache the results in localStorage. I don't know how Greasemonkey deals with it.
Reply
:iconlogeg:
=logeg May 1, 2013  Hobbyist General Artist
Like I said, I do it once per lifetime of my script, refreshing if get_folders detects a new folder. So, ideally once per browser restart.
For your case it's a bit more complicated as the lifetime of your script is the lifetime of a page.

So it doesn't cause errors as long as you keep it infrequent.
Polling a front-end page once per 10 seconds is clearly a massive overkill and does trigger the wrath of dA.
Reply
:icondj-zemar:
~DJ-Zemar May 1, 2013  Hobbyist Digital Artist
"..is clearly a massive overkill and does trigger the wrath of dA." This comment just made my day lol :D
Yeah, I think it's best I don't attempt to query the group folders just for the sake of not screwing stuff up.. Or at least until I get that sudden realization of the perfect fix. It's happened before, lol
Reply
:iconlogeg:
=logeg May 1, 2013  Hobbyist General Artist
Sure, both me and #deviantAnywhere show group messages.
Though truth be told, only I do filter for groups (and not just any folders), as it needs an ugly hack currently.
Reply
:iconblackwolfninja89:
Does anyone know how to fix the message centre? it won't display anything :(
Reply
:icondj-zemar:
~DJ-Zemar Apr 22, 2013  Hobbyist Digital Artist
Make sure you are not using Splinter mode and then make sure you have the newest version of the script, which I believe is version 1.6.
I have it on Firefox and am using it right now; it works fine for me. What browser are you using, which version of the script, and is splinter mode turned on or off?
Reply
Add a Comment: