Deviant Login Shop  Join deviantART for FREE Take the Tour
×



Details

Submitted on
December 21, 2011
Image Size
438 KB
Resolution
1236×686
Submitted with
Sta.sh
Link
Thumb
Embed

Stats

Views
1,940
Favourites
44 (who?)
Comments
56
Downloads
142
×
Hover Helper by electricjonny Hover Helper by electricjonny
This is a script that gives you information when you hold shift and hover over a username, avatar, or deviation.

If it's a username or avatar, you'll get the info shown on the left of this preview, with the avatar, username, tagline, then links to their gallery, journal page, and activity page. So you hold shift, then hover the username or avatar. You can't hover, then press shift. The information box will fade up, and then go away after a half second or so after unhovering it if you don't move your cursor onto the box.

You can also hold shift and hover a deviation link to get a 300 pixel wide preview. I've been wanting that for a while, since I sometimes forget the things people fav :slow: Anyway, this will work on any deviation link, and also thumbnails (if you want a bigger preview before clicking the deviation.

The deviation previews will also work in the chats, although usernames won't. The way the site's HTML is set up makes it harder to work in the chats.

To Install


This should work in Firefox (with Greasemonkey) and Chrome, and you can get it here:

http://electricjonny.com/code/da_-_hover_helper.user.js





Let me know if you have any questions or problems :)
Add a Comment:
 

The Artist has requested Critique on this Artwork

Please sign up or login to post a critique.

:iconnati11184:
nati11184 Featured By Owner Nov 26, 2013  Hobbyist General Artist
Looks like it doesn't work :/
Reply
:iconelectricjonny:
electricjonny Featured By Owner Nov 26, 2013  Hobbyist Photographer
Try installing it again, I might have updated it http://electricjonny.com/code/da_-_hover_helper.user.js
Reply
:iconnati11184:
nati11184 Featured By Owner Nov 26, 2013  Hobbyist General Artist
Now it works :la: Thanks :D :squee:
Reply
:iconelectricjonny:
electricjonny Featured By Owner Nov 26, 2013  Hobbyist Photographer
Ah nice :D
Reply
:iconboffinbrain:
BoffinbraiN Featured By Owner Nov 8, 2013  Professional Interface Designer
This script is currently broken, but all you need to do to fix it is find and replace all instances of ".live(" to ".on(" because live() is deprecated in later versions of jQuery. :)

Is there a specific reason for wrapping of your code up and putting it into the head? I remember having to do that back when Greasemonkey was first invented. Is that necessary for it to work in Chrome or somewhere else? Or, if the reason is to get access to jQuery, an easier way is to do this:

// @grant unsafeWindow
var $ = unsafeWindow.jQuery;

Also, hi! It's been a while since we talked.
Reply
:iconelectricjonny:
electricjonny Featured By Owner Nov 8, 2013  Hobbyist Photographer
Heh, hi :)

Yeah the only real reason I insert the script into the head is so that it works in Chrome without the unsafeWindow "hacks" that may not be supported in Chrome alone (Tampermonkey might solve this though).

I've tried .on(), but honestly, I ran into far more odd troubles than it "simply working" like the jQuery site docs said was the case.  For all of my scripts that include .live(), I simply add the jQuery Migrate js  code.jquery.com/jquery-migrate… into the head (usually before any of my own js) and that solves any problems.  If you want to do it.  If not I can update this script (which I really should do anyway :slow:) with the updated version.
Reply
:iconboffinbrain:
BoffinbraiN Featured By Owner Nov 8, 2013  Professional Interface Designer
Yeah, I figured it was for compatibility. As for the .on() fix, it worked for me - I just replaced them all and it seems to run fine. The user popups seem to disappear before I can click on the buttons most of the time, but that might have always been an issue.
Reply
:iconelectricjonny:
electricjonny Featured By Owner Nov 9, 2013  Hobbyist Photographer
Huh I had noticed that the user "window"  would disappear before I could click on any buttons.  That may be a bug I need to work out :B
Reply
:iconboffinbrain:
BoffinbraiN Featured By Owner Nov 11, 2013  Professional Interface Designer
It shouldn't be too tricky to keep hold of the timer variable that's returned with setTimeout, so you can cancel it if you hover over the popup in time. If you can't work it out, I can take a look later.
Reply
:iconelectricjonny:
electricjonny Featured By Owner Nov 11, 2013  Hobbyist Photographer
I must have fixed this during my round of .live() fixing I did, so it seems to work now :)

http://electricjonny.com/code/da_-_hover_helper.user.js
Reply
Add a Comment: