Sign in or Join FriendFeed
FriendFeed is the easiest way to share online. Learn more »
Micah
friendfeedPoll user script - released - Report statistics on a friendfeed thread used as a poll / survey - http://userscripts.org/scripts...
survey-says.jpg
kol-poll.jpg
Report statistics on a friendfeed thread used as a poll/survey. To customize possible answers (between 2 and 5 answers supported), in Configuration set answer1Array and answer2Array (and arrays 3 to 5 optionally). Each array can contain a single version of the answer word/phrase or multiple such as var answer1Array = ["Yes","Affirmative", "Absolutely"]; When viewing an individual post, the link Calculate Poll appears in the upper right corner of the page - click it to run or re-run a poll report. - Micah
The default configuration is: answer1Array = ['Yes','Yep','Yup']; and var answer2Array = ['No','Nope']; - Micah
Thanks, Haggis. - Micah
I was wracking my brain trying to figure what question would elicit the uniform responses of 'toothpaste', 'lemon' and 'orange'. Thanks for the link Micah! - Kevin Fox
Kevin, new theme names? *hint hint* :D - Micah from iPhone
Awesome. Glad my laziness may have spurred this. I just tested it and it worked great. Just a bit pesky having to set so many variables in the array for a poll like the one I created. - Mark Krynsky
Mark, you're absolutely spot on about the pesky nature of setting variables in the script itself. Creating a user interface for saving settings for user scripts like this is a pain (for one thing, can't use Greasemonkey data storage functions if I want straightforward compatibility with Safari/Greasekit). But the nature of this script may make it a bit easier than some because it's run in more of a one-off fashion. I'll see what I can do for the next rev. Oh, btw, for your poll I used answer1Array = ["paused"] & answer2Array = ["realtime","real-time", "real time"]. - Micah
Mark, regarding "spurred on" - you were the final straw :) - Micah
This is a wonderful idea, although why not make it simpler like just a simple survey system like what Google Docs uses. -- Like this one provided for the Themes Question -- http://friendfeed-media.com/8e11391... - Matt Ruiz
Matt, yeah, actually I participated in that one. A poll application naturally is better at the business conducting a poll. But, on a conversational system like ff, poll-like questions benefit from programmatic tallying only if they grow to a significant size. In many cases, a formal poll might not get much participation, but a casual question native to ff does. - Micah
would it be possible to have the results update automatically when a new comment is posted? great script, thanks! - Mike Chelen
also, is there an example topic where this script is in use? - Mike Chelen
Mike, this is a great example post to run the Calculate Poll script on: http://friendfeed.com/friendf... - Micah
friendfeedPoll [v0.1.1] released - Added auto-refresh of poll calculation upon comments being added (or deleted). Thanks for the suggestion, Mike :) - Micah
Micah, very nice! it is so cool to see the total change live - Mike Chelen
also found the topic from the screenshot :) http://friendfeed.com/friendf... - Mike Chelen