Shop Mobile More Submit  Join Login
×




Details

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

Stats

Views
2,211
Favourites
47 (who?)
Comments
62
Downloads
143
×
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.

:iconpuddlefisher:
puddlefisher Featured By Owner Aug 3, 2014   Digital Artist
Well, I bet it used to be. :dummy: I guess I'm much too late for this one. ._.
Reply
:iconelectricjonny:
electricjonny Featured By Owner Aug 3, 2014  Hobbyist Photographer
Try this 192.168.1.82/code/da_-_hover_h… but like I just replied to you with, it doesn't exactly work perfectly.
Reply
:iconpuddlefisher:
puddlefisher Featured By Owner Aug 3, 2014   Digital Artist
Ha! Thank you - I'll try it out. I initially posted with the intent on installing the script afterwards, but I'm late.
Oh, so late! Nonetheless, the function seems to have had decent practical uses (esp when fully functioning) and would have been perfect.
Anyway. Great work in general, electricjonny! I remember you from at least 2007 mainly idling in #iRPG - now, there's a function that boggled my newbie mind at the time. :dummy:
I never found out who won the back story writing competition either. That'd be an interesting read.
Reply
:iconelectricjonny:
electricjonny Featured By Owner Aug 3, 2014  Hobbyist Photographer
Yeah I never heard who "won" that stupid game :lol:

Anyway, if you want another script for "FB-like hover stuff" check out this script xeviousss.deviantart.com/art/d… which sadly I don't thinks works anymore (the install URL not working, the script not working?  I forget) But try this on for size, this is how I originally found it.  With a slight few additions: 99.82.246.199/code/deviantINFO… Basically hover an avatar, get info.  I'd like forum posts stats, but haven't found a way to add those :B
Reply
:iconpuddlefisher:
puddlefisher Featured By Owner Aug 3, 2014   Digital Artist
Oh, wowzers. Having dispersed a little of my time over Facebook by now, it's often the case that I'd hover over a deviant's username like on FB - to no avail. Thanks for sharing, it's perfect. Love 
Reply
:iconelectricjonny:
electricjonny Featured By Owner Aug 3, 2014  Hobbyist Photographer
This uh, this doesn't really work anymore, and furthermore, the install URL 404's.  So er what? :slow:  I can provide a non-404 script, but (for some reason) you can't hover the gallery/activity/journal links to get to those.  But yeah, I think the hover-deviations stuff works.
Reply
: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
:iconvanuinfiltrator:
VanuInfiltrator Featured By Owner Aug 28, 2013  Hobbyist Writer
This should be a feature :eager:
Reply
:iconelectricjonny:
electricjonny Featured By Owner Aug 28, 2013  Hobbyist Photographer
Useful yeah =P

Thanks :)
Reply
:icontotal1000:
Total1000 Featured By Owner Feb 11, 2013
when i click the link i just get a ton of text, no website
Reply
:iconelectricjonny:
electricjonny Featured By Owner Feb 11, 2013  Hobbyist Photographer
Do you have Greasemonkey?
Reply
:icontotal1000:
Total1000 Featured By Owner Feb 11, 2013
whats greasemonkey?
Reply
:iconelectricjonny:
electricjonny Featured By Owner Feb 11, 2013  Hobbyist Photographer
It's a Firefox extension enabling you to use *.user.js scripts. You need it in order to use scripts people upload here.
Reply
:icontotal1000:
Total1000 Featured By Owner Feb 11, 2013
oohh okay thanks!
Reply
:iconotisbee:
OtisBee Featured By Owner Jan 8, 2012   Interface Designer
so cool and extremely usefull. :clap:
thanks a lot! :hooray:
Reply
:iconelectricjonny:
electricjonny Featured By Owner Jan 8, 2012  Hobbyist Photographer
N problem :)
Reply
:icontheperfumedprince:
ThePerfumedPrince Featured By Owner Dec 23, 2011  Hobbyist Writer
I can't get it to work with comment names like with barts I hover and shift but it doesn't work :slow:
Reply
:iconelectricjonny:
electricjonny Featured By Owner Dec 23, 2011  Hobbyist Photographer
So far, the only place I've seen it fail is in the chats, which I explained, and on deviation's "who faved this" popup boxes. Is this where it's failing?
Reply
:iconnamenotrequired:
namenotrequired Featured By Owner Dec 22, 2011  Student Interface Designer
Really nice :thumbsup: though if I do this on the "more from" to the right, part of it gets cut off by the end of the screen :hmm:
Reply
:iconelectricjonny:
electricjonny Featured By Owner Dec 22, 2011  Hobbyist Photographer
Hmm, you're right, if you hover at the very right side of the name. I didn't code it to detect the horizontal position, since I didn't think there would be many names too far to the right.
Reply
:iconrotane:
rotane Featured By Owner Dec 22, 2011   General Artist
Nice one! It only somewhat conflicts with your own "deviation Quick View" script ;) (I say "somewhat" because sometimes the full screen modal is on top, sometimes the 300px preview.)
Reply
:iconelectricjonny:
electricjonny Featured By Owner Dec 22, 2011  Hobbyist Photographer
Haha, you noticed that ;)

Yeah I should have coded it to detect if that other script is there and work around it better. I prefer to see the bigger version with the other script, but this lets you hover the name of deviations to see it, which is nice.
Reply
:iconrotane:
rotane Featured By Owner Dec 22, 2011   General Artist
I told you before, man, I have an eye for such things ;)

Now that I think about it, I actually prefer the 300px one, to be honest. The full-view modal usually takes to long to load, so I rather open a new background tab and do something else while it loads. Yes, I'm quite impatient :B
Reply
:iconelectricjonny:
electricjonny Featured By Owner Dec 22, 2011  Hobbyist Photographer
I guess I should have picked a different keyboard key. But I like shift =P

Anyway yeah, this script's preview is quite faster. So you might just disable/uninstall the other one.
Reply
:iconrotane:
rotane Featured By Owner Dec 23, 2011   General Artist
Yes, shift is good. I just keep forgetting there is a modifier at all, and in the process hardly ever actively use one of these 2 scripts of yours. So this got me thinking... Would it be possible for you to release a modified version of the script that doesn't need a modifier at all? Yes, I realize you'd get popups coming and going constantly, but still. Also, the fade-in and -out should be almost eliminated then for a snappy experience. No need for a timer either (as in, keep your cursor over a link fot at least 500ms for the popup to appear). Yes, I want it snappy! And, a preload would be also cool. As in, as soon as the page finished loading, your script scans the entire page and caches all the 300px previews it can find. (Similar to this but with preloading.) :plotting:
Reply
:iconelectricjonny:
electricjonny Featured By Owner Dec 23, 2011  Hobbyist Photographer
Having it not need shift to work would be easy :nod: Although getting it to cache, or preload, all the thumbnails would be harder. I might be able to do it, but then things get hard when you go to a new page, but don't load a new page. Like dA's (fucking annoying) superbrowse. I might be able to make it start loading all the deviation previews, but I think I'd loose the ability to instantly be able to call them up on hover, like I can do in the chats.

Anyway, want a version that doesn't require shift to be held down?
Reply
:iconrotane:
rotane Featured By Owner Jan 14, 2012   General Artist
Whoops, looks like I forgot about this comment of yours. Sorry for the late reply; but if the offer still stands, yes, a "shift-less" version would be great :)
Reply
:iconelectricjonny:
electricjonny Featured By Owner Jan 14, 2012  Hobbyist Photographer
Ok, here ya go: http://electricjonny.com/code/da_-_hover_helper2.user.js

Let me know if you want me to try and add a 2 or 3 or whatever second delay from hovering and things appearing. Right now it just happens as soon as you hover, which you may find gets in the way.
Reply
(2 Replies)
:icondeviant-garde:
deviant-garde Featured By Owner Dec 21, 2011
Interesting code you got here. I like how you use make a DiFi call without using the DiFi object. :lol:
Reply
:iconelectricjonny:
electricjonny Featured By Owner Dec 21, 2011  Hobbyist Photographer
Yeah my code tends to be odd. I don't know js that well =P I copy/paste things I manage to get working a lot of times. Hence the $.ajax() and not $.getJSON :slow:

But, it works, so that's my main concern.
Reply
:icondeviant-garde:
deviant-garde Featured By Owner Dec 21, 2011
Well, since the code isn't in the content page, you wouldn't have access to the DiFi object anyway. :paranoid:

Reminds me that I have a certain userscript which I practically stopped working on altogether July of this year...
Reply
:iconelectricjonny:
electricjonny Featured By Owner Dec 21, 2011  Hobbyist Photographer
Yeah I usually stick the whole js into the head of the page, so I can leach off dA's jQuery and get all it's vars. But I didn't need any of dA's js, and plopping jQuery in was simple, so I just went that route.
Reply
:iconneurotype:
neurotype Featured By Owner Dec 21, 2011  Hobbyist General Artist
holy batman that is fancy :omfg:

:lol: I try to make sure there isn't enough in my gallery to cause that kind of confusion.
Reply
:iconelectricjonny:
electricjonny Featured By Owner Dec 21, 2011  Hobbyist Photographer
Haha :giggle:

Hope you like it :)
Reply
:iconneurotype:
neurotype Featured By Owner Dec 24, 2011  Hobbyist General Artist
Fact, it's awesome. :O
Reply
:iconarchaeobibliologist:
archaeobibliologist Featured By Owner Dec 21, 2011  Professional Photographer
THAT IS SWEET!!!!!!!!!!!!!!!!!!!!!!!!!!!
(and I think that is the most punctuation I've ever used in one sentence before)
Reply
:iconelectricjonny:
electricjonny Featured By Owner Dec 21, 2011  Hobbyist Photographer
Haha, thanks man :D
Reply
:iconprosaix:
prosaix Featured By Owner Dec 21, 2011
:excited:
Reply
:iconelectricjonny:
electricjonny Featured By Owner Dec 21, 2011  Hobbyist Photographer
I don't know about you, but I often like to see avatars when I'm on the main forum pages. This helps =P
Reply
Add a Comment: