Moderators: Three Stars, dagny, pfim, netwolf






DocEmrick wrote:Many people aren't voting because you have to register. I gave a fake e-mail. Last years was so easy, all you had to do was go and click a radio button. This is stupid, but as long as the dumb marketing is paying for the league to stay open, I won't complain.
All Star Game = Pointless





The Pens Blog wrote:We'd start a Scuderi campaign, but he's on Secret Service duty during the All-Star Break.


Digitalgypsy66 wrote:OK, so we need a programmer to write a script to vote in Penguins players. The one above only works with Habs players on the Canadian NHL Fan Balloting site.
Since their votes only count as .8 of a vote compared to 1 American vote,
they've actually voted more than what's seen above.


// ==UserScript==
// @name NHL All-stars Voter
// @namespace nhl
//@description This script votes for my favorite players.
// @include http://ca.fanballoting.nhl.com/vote
// ==/UserScript==
/*
var players = Array('8471675','8451101','8470171','8468498','8471724','8470594');
for (var i = 7; i < 13; i++)
{
var id = "player_"+str(i);
alert(id);
document.getElementById(id).value = players[i-7];
}
*/
function GetXmlHttpObject()
{
var xmlHttp=null;
try
{
// Firefox, Opera 8.0+, Safari
xmlHttp=new XMLHttpRequest();
}
catch (e)
{
// Internet Explorer
try
{
xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
}
catch (e)
{
xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
}
}
return xmlHttp;
}
function vote2(p)
{
xmlHttp=GetXmlHttpObject();
if (xmlHttp==null)
{
alert ("Your browser does not support AJAX!");
return;
}
xmlHttp.onreadystatechange=function()
{
if(xmlHttp.readyState==4)
{
location.reload(true);
}
}
xmlHttp.open("POST","vote",true);
xmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded")
xmlHttp.send(p);
}
try{
var post = "player_1=&player_2=&player_3=&player_4=&player_5=&player_6=&player_7=8468095&player_8=8471766&player_9=8470280&player_10=8467899&player_11=8467915&player_12=8470074";
var build = document.getElementsByName('form_build_id')[0].value;
var token = document.getElementsByName('form_token')[0].value;
var form = document.getElementsByName('form_id')[0].value;
var x = Math.round(Math.random()*270);
var y = Math.round(Math.random()*34);
var rest = "&vote_button.x="+x+"&vote_button.y="+y;
rest += "&form_build_id="+build;
rest += "&form_token="+token;
rest += "&form_id="+form;
post += rest;
vote2(post);
}
catch(e)
{
location.reload(true);
}

JS© wrote:in 50 minutes, new totals
Leading Forwards
KOIVU, Saku80897 (+4172)
KOVALEV, Alex79166 (+4176)
TANGUAY, Alex78464 (+4188)
SEMIN, Alexander49488 (+754)
OVECHKIN, Alex29284 (+562)
GAGNE, Simon25947 (+158)
LECAVALIER, Vincent25865 (+165)
CROSBY, Sidney18038 (+946)
MALKIN, Evgeni13725 (+351)
SAVARD, Marc12367 (+251)

JS© wrote:one step ahead of ya:
- Code: Select all
Big long bit of JS code
Players in the array are Sid, Geno, The Superstar, Orpik, Letang, and Fleury
Players 7-12, which I believe is split for the Western conference, are as follows:
George Parros, Jared Boll, Ben Eager, Jim Vandermeer, Mike Commodore, Jeff Drouin-Deslauriers





