Calgarypuck Forums - The Unofficial Calgary Flames Fan Community

Go Back   Calgarypuck Forums - The Unofficial Calgary Flames Fan Community > Main Forums > The Off Topic Forum
Register Forum Rules FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread
Old 07-08-2014, 09:14 PM   #181
photon
The new goggles also do nothing.
 
photon's Avatar
 
Join Date: Oct 2001
Location: Calgary
Exp:
Default

Oh here's the direct poll URL if it helps.

https://polldaddy.com/poll/8170848/
__________________
Uncertainty is an uncomfortable position.
But certainty is an absurd one.
photon is offline   Reply With Quote
Old 07-08-2014, 09:15 PM   #182
lazypucker
First Line Centre
 
lazypucker's Avatar
 
Join Date: May 2004
Exp:
Default

Do we need a Wannamaker campaign here for voting number 1?
lazypucker is offline   Reply With Quote
Old 07-08-2014, 09:18 PM   #183
Regulator75
Franchise Player
 
Regulator75's Avatar
 
Join Date: Oct 2001
Location: Behind Nikkor Glass
Exp:
Default

^^^ Yes, yes we do.
__________________

More photos on Flickr
Regulator75 is offline   Reply With Quote
Old 07-08-2014, 09:19 PM   #184
ae118
Backup Goalie
 
Join Date: Oct 2012
Exp:
Default

How is Option 1 not winning? Option 2 looks like a bunch of fog rolled in and you can't see a damn thing except some ground and some mountain peaks. I don't understand how it's winning. Option 3 looks like it's from a cartoon.
ae118 is offline   Reply With Quote
Old 07-08-2014, 09:20 PM   #185
pylon
Lifetime Suspension
 
Join Date: Jul 2007
Exp:
Default

LOL, I was waiting for the heavy hitters to chime in, nice.

Aug 19th is a long ways off....this is going to be epic if CP can affect a government policy.
pylon is offline   Reply With Quote
Old 07-08-2014, 09:23 PM   #186
pylon
Lifetime Suspension
 
Join Date: Jul 2007
Exp:
Default

Quote:
Originally Posted by ae118 View Post
How is Option 1 not winning? Option 2 looks like a bunch of fog rolled in and you can't see a damn thing except some ground and some mountain peaks. I don't understand how it's winning. Option 3 looks like it's from a cartoon.
People have horrible taste in design.

The thinking of the average slack jaw in central Alberta is probably. "Them there mountains look like a real photo-picture. Just like I seen em. That one is the goodest. Imma punch my vote into this $1.00 a day MDG internet machine I ordered off the moving picture tube and let me voice be heard!"
pylon is offline   Reply With Quote
The Following 6 Users Say Thank You to pylon For This Useful Post:
Old 07-08-2014, 09:24 PM   #187
Regulator75
Franchise Player
 
Regulator75's Avatar
 
Join Date: Oct 2001
Location: Behind Nikkor Glass
Exp:
Default

It's probably the other provinces trolling us.
__________________

More photos on Flickr
Regulator75 is offline   Reply With Quote
Old 07-08-2014, 09:33 PM   #188
Regular_John
First Line Centre
 
Regular_John's Avatar
 
Join Date: Feb 2010
Location: Calgary
Exp:
Default

I've gotten part of the way there, I'm able to check option #1 using this as a bookmarklet:

javascript:jQuery("#PDI_answer37166779").attr('che cked', 'checked');

The #PDI_answer37166779 is the ID on the first radio button, and from what I can gather the "vote" button being loaded on the Alberta Gov site has a consitant ID of #pd-vote-button58765... or at least it is for me.

But the ID on the polldaddy URL seems to be generated dynamically, but there is actually a form there.

Also, hello to our new friends from the NSA.

Last edited by Regular_John; 07-09-2014 at 08:50 AM.
Regular_John is offline   Reply With Quote
The Following 4 Users Say Thank You to Regular_John For This Useful Post:
Old 07-08-2014, 09:36 PM   #189
photon
The new goggles also do nothing.
 
photon's Avatar
 
Join Date: Oct 2001
Location: Calgary
Exp:
Default

Lol I dunno why I'm still looking at this.

Ok the input for the radio button for the first option is:

<input id="PDI_answer37166779" type="radio" value="37166779" name="PDI_answer">

On the page there's a hidden field:

<input type="hidden" value="413" name="pz">

The vote button also has some JSON in it:

<a class="btn btn-primary btn-large vote-button" data-vote="{"id":8170848,"o":"0","b":"1","m":"0","at":" 20","t":77954,"v":0,"e":604800,"n":"93b0bc3dbb8a69 9bf87ed9e90814b60d"}" style="cursorointer;">Vote</a>

And from what I can tell the vote URL that is generated is (combined with the related JSON from that particular page view):

{"id":8170848,"o":"0","b":"1","m":"0","at":"20","t ":74472,"v":0,"e":604800,"n":"6b06da420e9913271bc8 ed630b379935"}
/vote.php?va=20&pt=0&r=1&p=8170848&a=37166779%2C&o= &t=74472&token=6b06da420e9913271bc8ed630b379935&pz =137

{"id":8170848,"o":"0","b":"1","m":"0","at":"20","t ":77954,"v":0,"e":604800,"n":"93b0bc3dbb8a699bf87e d9e90814b60d"}
"/vote.php?va=20&pt=0&r=1&p=8170848&a=37166779%2C&o= &t=77954&token=93b0bc3dbb8a699bf87ed9e90814b60d&pz =413"


So in the URL to submit a vote, looks like "p" is the poll ID, "a" is the ID of the option to vote with (37166779). "t" looks like some kind of timestamp, which is in the JSON in the tag of the vote button. No idea what "e" is but doesn't seem to change. The token is a random number for each page refresh (a nonce it's called), so one can't just submit URLs without getting a new random number each time. "pz" is the number from the hidden field.

Enough there to write a script to get a page, scrape it for the necessary values, then GET/POST or whatever to the vote.php URL.
__________________
Uncertainty is an uncomfortable position.
But certainty is an absurd one.
photon is offline   Reply With Quote
The Following 4 Users Say Thank You to photon For This Useful Post:
Old 07-08-2014, 09:38 PM   #190
pylon
Lifetime Suspension
 
Join Date: Jul 2007
Exp:
Default

Good work guys. I'm just the sales department for this thing, keep up the good mathing or whatever it is you are doing.
pylon is offline   Reply With Quote
The Following User Says Thank You to pylon For This Useful Post:
Old 07-08-2014, 09:39 PM   #191
nik-
Franchise Player
 
nik-'s Avatar
 
Join Date: Jun 2004
Exp:
Default

I like the second one. Apparently I'm a moron as a result
__________________
Quote:
Originally Posted by MisterJoji View Post
Johnny eats garbage and isn’t 100% committed.
nik- is offline   Reply With Quote
The Following 2 Users Say Thank You to nik- For This Useful Post:
Old 07-08-2014, 09:40 PM   #192
Regular_John
First Line Centre
 
Regular_John's Avatar
 
Join Date: Feb 2010
Location: Calgary
Exp:
Default

Possible Success!

1) Go to:
http://jsfiddle.net/zLPtu/
2) Grab the code in the bottom left hand window, the one marked javascript.
3) In Google Chrome (possible safari) create a new bookmark and paste the code from above in it. Give it a coolname like Wannamaker
4) With Private Browsing or incognito mode visit the direct polldaddy URL:
https://polldaddy.com/poll/8170848/
5) Click on the Wannamaker bookmarklet
6) Repeat as needed

Seems to be working for me, but can some one else confirm for me?
Regular_John is offline   Reply With Quote
The Following User Says Thank You to Regular_John For This Useful Post:
Old 07-08-2014, 09:41 PM   #193
pylon
Lifetime Suspension
 
Join Date: Jul 2007
Exp:
Default

LOL @ program name.
pylon is offline   Reply With Quote
Old 07-08-2014, 09:43 PM   #194
photon
The new goggles also do nothing.
 
photon's Avatar
 
Join Date: Oct 2001
Location: Calgary
Exp:
Default

Quote:
Originally Posted by jaydorn View Post
I've gotten part of the way there, I'm able to check option #1 using this as a bookmarklet:

javascript:jQuery("#PDI_answer37166779").attr('che cked', 'checked');

The #PDI_answer37166779 is the ID on the first radio button, and from what I can gather the "vote" button being loaded on the Alberta Gov site has a consitant ID of #pd-vote-button58765... or at least it is for me.

But the ID on the polldaddy URL seems to be generated dynamically, but there is actually a form there.

Also, hello to our new friends from the NSA.
There's a function vote(D) {} in the community.js that composes the URL, the D is the onclick event when clicking on the Vote link (it's not an actual submit button). Can you just create an onclick event and call that function and pass it in? No idea what bookmarklets are
__________________
Uncertainty is an uncomfortable position.
But certainty is an absurd one.
photon is offline   Reply With Quote
Old 07-08-2014, 09:44 PM   #195
photon
The new goggles also do nothing.
 
photon's Avatar
 
Join Date: Oct 2001
Location: Calgary
Exp:
Default

Oh and I've read that polldaddy likely does have some flood control, so best to keep your votes spaced out.. every 10 seconds or something.

Wonder if this would force them to change the poll to limit by IP addresses.
__________________
Uncertainty is an uncomfortable position.
But certainty is an absurd one.
photon is offline   Reply With Quote
Old 07-08-2014, 09:45 PM   #196
keratosis
#1 Goaltender
 
keratosis's Avatar
 
Join Date: Oct 2005
Location: Not sure
Exp:
Default

The Russians are paying us back for Wannamaker.
__________________
Quote:
Originally posted by Bingo.
Maybe he hates cowboy boots.
keratosis is offline   Reply With Quote
Old 07-08-2014, 09:53 PM   #197
photon
The new goggles also do nothing.
 
photon's Avatar
 
Join Date: Oct 2001
Location: Calgary
Exp:
Default

Quote:
Originally Posted by jaydorn View Post
Possible Success!

1) Go to:
http://jsfiddle.net/zLPtu/
2) Grab the code in the bottom left hand window, the one marked javascript.
3) In Google Chrome (possible safari) create a new bookmark and paste the code from above in it. Give it a coolname like Wannamaker
4) With Private Browsing or incognito mode visit the direct polldaddy URL:
https://polldaddy.com/poll/8170848/
5) Click on the Wannamaker bookmarklet
6) Repeat as needed

Seems to be working for me, but can some one else confirm for me?
Seems to work for me, but you still have to close and re-open the Incognito window. If I block all cookies in Chrome from polldaddy.com I shouldn't have to close the incognito window then should I? I could just hit your bookmark over and over.

I tried that and it doesn't show I've voted either, but I think the voted message comes up as a result of the cookie.

EDIT: Maybe I'll make a program to vote automatically, but I should probably try and push it through some proxies, randomize the intervals, stuff like that.
__________________
Uncertainty is an uncomfortable position.
But certainty is an absurd one.
photon is offline   Reply With Quote
Old 07-08-2014, 10:03 PM   #198
Dion
Not a casual user
 
Dion's Avatar
 
Join Date: Mar 2006
Location: A simple man leading a complicated life....
Exp:
Default

I have no clue as to what you guys are doing but I hope it works in the end.
__________________
Dion is offline   Reply With Quote
The Following User Says Thank You to Dion For This Useful Post:
Old 07-08-2014, 10:09 PM   #199
Regular_John
First Line Centre
 
Regular_John's Avatar
 
Join Date: Feb 2010
Location: Calgary
Exp:
Default

Quote:
Originally Posted by photon View Post
Seems to work for me, but you still have to close and re-open the Incognito window. If I block all cookies in Chrome from polldaddy.com I shouldn't have to close the incognito window then should I? I could just hit your bookmark over and over.

I tried that and it doesn't show I've voted either, but I think the voted message comes up as a result of the cookie.

EDIT: Maybe I'll make a program to vote automatically, but I should probably try and push it through some proxies, randomize the intervals, stuff like that.
Yeah an automated program would be the way to go, seems to need about 2-3 votes to move the % up a point (eg: 39.89 to 39.90), so my bookmarket is a tedious game of opening/closing windows as a result.
Regular_John is offline   Reply With Quote
Old 07-08-2014, 10:11 PM   #200
Joborule
Franchise Player
 
Joborule's Avatar
 
Join Date: Jun 2006
Location: Calgary, Alberta
Exp:
Default

Should ask for some support from our neighbours at Beyond to help out on the good fight.
Joborule is offline   Reply With Quote
The Following User Says Thank You to Joborule For This Useful Post:
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 07:21 AM.

Calgary Flames
2024-25




Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright Calgarypuck 2021 | See Our Privacy Policy