Deviant Login Shop  Join deviantART for FREE Take the Tour
×



Details

Submitted on
July 14, 2010
Image Size
46.5 KB
Resolution
434×395
Link
Thumb
Embed

Stats

Views
6,401 (2 today)
Favourites
74 (who?)
Comments
34
Downloads
61

License

Creative Commons License
Some rights reserved. This work is licensed under a
Creative Commons Attribution-Noncommercial-Share Alike 3.0 License.
×
Poll Pies by kemayo Poll Pies by kemayo
Pie charts are cool. This sticks a google charts pie chart under any completed poll. It'll add one in after you vote without requiring a page reload, also.

I can't say that I've thoroughly tested it. Really long poll answers might make it get weird.

Install here: [link]

You need Greasemonkey. (Or a compatible equivalent in another browser. It's possible to persuade Chrome to use these scripts, I believe.)

The after-vote stuff doesn't handle voting in the message center. I might fix this someday.
Add a Comment:
 
:iconelectricjonny:
electricjonny Featured By Owner Edited Aug 22, 2014  Hobbyist Photographer
Hey :) Just wanted to let you know that I've fixed and changed the js here to work right, now that it seems it doesn't work at all.

Greasemonkey seems to have further sandboxed its unsafeWindow, so using that to grab dA's jQuery doesn't work anymore.

Also, it seems that the code to grab the poll vote descriptions doesn't work anymore (dA and changing the div classes/markup…), so I fixed that.  Also made it work on poll.deviantart.com, so people can see the google pie result there.  I also changed the pie color to blue, since that seemed to fit a bit better with the dA skin, rather than the default orange.  EDIT: Heh sorry, seems that I had some Stylish to modify the bar result color... so your default orange may be alright here.  Feel free to cut that arg out of the URL and go with the same code, just without the blue colored pie =P

Anyway, here's the code updates, if you want to change yours fc00.deviantart.net/fs71/f/201… :)

EDIT:  It seems this makes the message centre not show results :o   So, yeah, don't update...
Reply
:iconnamenotrequired:
namenotrequired Featured By Owner Jan 13, 2012  Student Interface Designer
I featured this here [link] :)
Reply
:iconinvader-sparkle:
Invader-Sparkle Featured By Owner Dec 26, 2010
Wow thanks this is so cool!
Reply
:iconbaz135:
Baz135 Featured By Owner Aug 26, 2010  Hobbyist Photographer
As neat as it is, if there's too many options on a poll the shades of the different options become to close to each other and so it becomes kind of hard to differentiate.
Reply
:iconpikadudeno1:
pikadudeno1 Featured By Owner Jul 25, 2010  Hobbyist Digital Artist
Chrome doesn't support unsafeWindow, but if you replace the first two lines of code with Content Scope Runner, the script runs fine under Chrome. :)
Reply
:iconsa-cool:
sa-cool Featured By Owner Jul 25, 2010  Professional Photographer
love it! :aww:
Reply
:iconfatezoom:
FateZoom Featured By Owner Jul 25, 2010  Student Interface Designer
i love this id!!
Reply
:iconsatania:
SaTaNiA Featured By Owner Jul 15, 2010  Hobbyist Digital Artist
Simply Awesome :clap:
Reply
:icontifa22:
Tifa22 Featured By Owner Jul 15, 2010  Hobbyist Digital Artist
That's a cool thing :D
Reply
:iconmheltin:
Mheltin Featured By Owner Jul 14, 2010  Professional Interface Designer
Awesome. :la:
Reply
Add a Comment: