SBR Forum - Free Picks & Sports Handicapping Legendz The PIG WSEX
BetJamaica Matchbook BetOnline
SBR - SportsBookReview.com 5Dimes The Greek Intertops
SBR Recommended Sportsbooks
1. Pinnacle Sports ... SBR Rating A+ ... Pinnacle Sports Review
2. The Greek Sports Book ... SBR Rating A+ ... The Greek Review
3. BookMaker ... SBR Rating A+ ... BookMaker Review
4. BetJamaica ... SBR Rating A+ ... BetJamaica Review
5. Legendz Sports ... SBR Rating A+ ... Legendz Review
Posters' Top Rated Sportsbooks
1. Pinnacle Sports ... 150 total points ... Pinnacle Sports Review
2. Matchbook ... 144 total points ... Matchbook Review
3. BetJamaica ... 115 total points ... BetJamaica Review
4. BookMaker / CRIS ... 109 total points ... BookMaker Review
5. The Greek Sports Book ... 91 total points ... The Greek Review
Go Back   Sports Handicapping - Sports Betting - Sports Picks - SBR Forum > Sports Betting, Sportsbooks & General Discussion > Handicapper Think Tank

Closed Thread
 
Thread Tools Display Modes
Old 12-17-2007, 04:53 AM   #1 (permalink)
Ganchrow
Moderator
 
Ganchrow's Avatar
 
Join Date: 08-28-05
Location: Forest Hills, NY, Home of the Blitzkrieg Bop
Posts: 4,587
Ganchrow is offline
Default Bookmaker/CRIS Stay Logged-In Script for Firefox

I'm sure I'm not the only who finds the whole auto-logout thing at Bookmaker, CRIS, et. al. rather annoying. This is especially true with Bookmaker/CRIS because the software's login process is so time-consuming.

For a while I was just using an auto-refresh, but that was kind of annoying as it would flash the page, often refresh at an inopportune time, and I'd always need to remember to reset it when I changed pages.

Well I played around with it all for a bit and I think I came up with a pretty good solution for FireFox users.

To install, you'll need the the FireFox add-in GreaseMonkey. If you already have GreaseMonkey you can install the Stay Logged-In Script by clicking here (For new beta version that should work with nearly all books click here.)

If you don't already have GreaseMonkey visit the FireFox GreaseMonkey page, install the add-in by clicking the "Install Now" button, then restart Firefox and install from the above link.

(If you want to uninstall, go to Tools/Manage User Scripts, select "Stay Logged-In", and click Uninstall.)

If you care how it works:
The script is really quite simple.

It works by sending making xmlhttpRequest every 5 minutes (to change the refresh time just modify the lRefreshInterval variable, specified in milliseconds) to the main wagering page (wagering2.aspx). This is done behind the scenes with the response summary sent to the Firefox error console ("under Messages") with the response itself is discarded. CRIS & co. treat this request as activity on the player's part and thereby keeping the session alive.

It's still a bit syntactically messy but it does do the trick. I haven't played around with with it but in order to conserve bandwidth perhaps a page smaller than wagerisng2.aspx might be better suited to the task.

By design it won't send the request if you're on the main portal page (meaning you're not logged in), if you're viewing the wagering iframe in its own window (which unless you're hacking around you almost certainly are not), or if you're in the process of logging in or out.

It's currently set up to work with the following sportsbook domains:
betcris.com
bookmaker.com
2betdsi.com
betdsi.com
betmaker.com
yabet.com
optionsports.com
betonfighting.com
4galaxysports.com
sport-bet.net
Modifying the script to work with other domains attached to sportsbooks using CRIS software is trivial (it would just be a matter of going to Tools/Manage User Scripts and adding the desired domain).

Modifying it to work with a different sportsbook (or any other size which automatically logs you out after a period of inactivity) should in most cases probably be fairly easy as well.

If anyone has any suggestions on how to improve this, please post them here.
__________________
Old 12-17-2007, 06:43 PM   #2 (permalink)
RickySteve
SBR MVP
 
Join Date: 01-31-06
Posts: 1,823
RickySteve is offline
Default

Very useful. This tool should make Mudcat deliriously happy.

Is this something CRIS might frown upon?
Old 12-17-2007, 08:13 PM   #3 (permalink)
Bill Dozer
Administrator
 
Bill Dozer's Avatar
 
Join Date: 07-12-05
Posts: 5,505
Bill Dozer is online now
Default

I'm not sure how it looks to them but if player usage time goes up they may look to see why. I wouldn't be surprised if CRIS asks you not to use it the way Pinnacle asks people not to scrape their lines.

It sounds harmless otherwise... but using stuff like this always seemed like a good way to get profiled.
Old 12-17-2007, 08:28 PM   #4 (permalink)
RickySteve
SBR MVP
 
Join Date: 01-31-06
Posts: 1,823
RickySteve is offline
Default

I'm already profiled. I just wouldn't want to get profiled out the door.
Old 12-17-2007, 08:50 PM   #5 (permalink)
Ganchrow
Moderator
 
Ganchrow's Avatar
 
Join Date: 08-28-05
Location: Forest Hills, NY, Home of the Blitzkrieg Bop
Posts: 4,587
Ganchrow is offline
Default

To CRIS it just looks identical to a normal Firefox refresh.

It's only once happening every 5 minutes and it's not like it's requesting any lines or anything. It's basucally just keeping the connection alive by making a simple request.
__________________
Old 12-17-2007, 09:18 PM   #6 (permalink)
2Pac
Banned
 
Join Date: 12-12-07
Posts: 1,496
2Pac is offline
Default

This could be a reason for them to not pay your winnings!
Old 12-17-2007, 09:20 PM   #7 (permalink)
RickySteve
SBR MVP
 
Join Date: 01-31-06
Posts: 1,823
RickySteve is offline
Default

Quote:
Originally Posted by 2Pac View Post
This could be a reason for them to not pay your winnings!
Let's not get hysterical.
Old 12-17-2007, 09:21 PM   #8 (permalink)
Ganchrow
Moderator
 
Ganchrow's Avatar
 
Join Date: 08-28-05
Location: Forest Hills, NY, Home of the Blitzkrieg Bop
Posts: 4,587
Ganchrow is offline
Default

Quote:
Originally Posted by 2Pac View Post
This could be a reason for them to not pay your winnings!
From CRIS's perspective this is no different from manually refreshing every few minutes.
__________________
Old 12-17-2007, 11:57 PM   #9 (permalink)
Scorpion
SBR MVP
 
Scorpion's Avatar
 
Join Date: 09-04-05
Posts: 1,062
Scorpion is offline
Default

I tried it. didnt work
why are you excluding wagering.aspx?
Old 12-18-2007, 03:59 AM   #10 (permalink)
Ganchrow
Moderator
 
Ganchrow's Avatar
 
Join Date: 08-28-05
Location: Forest Hills, NY, Home of the Blitzkrieg Bop
Posts: 4,587
Ganchrow is offline
Default

Quote:
Originally Posted by Scorpion View Post
I tried it. didnt work
why are you excluding wagering.aspx?
It's not. It's excluding wagering2.aspx.

wagering2.aspx is the page loaded by AJAX. Under normal usage it would only appear in an IFRAME. If I didn't exclude it would just wind up creating an additional AJAX request.

What address are you using? Is it one of the one listed above?

If you go to Tools=>Error Console in FireFox and click the "Messages" button you'll see some script output. Try clearing that and refreshing CRIS/Bookmaker and seeing what it says.

If it's still logging you out it's possible that for whatever reason your auto-logout period is shorter than 5 minutes. Try changing it to 3 to 4 minutes.
__________________
Old 12-18-2007, 10:27 AM   #11 (permalink)
Scorpion
SBR MVP
 
Scorpion's Avatar
 
Join Date: 09-04-05
Posts: 1,062
Scorpion is offline
Default

it works
thanks

i think after adding a book, i probably didnt refresh

how about books like abc islands that use a different software?
Old 12-18-2007, 10:37 AM   #12 (permalink)
jjgold
SBR Hall of Famer
 
jjgold's Avatar
 
Join Date: 07-20-05
Posts: 21,122
jjgold is offline
Default

Using these auto refresh utilities at sportsbook slows up the betting pages for other players trying to make plays.
Old 12-18-2007, 11:51 AM   #13 (permalink)
bigboydan
Moderator
 
bigboydan's Avatar
 
Join Date: 08-10-05
Posts: 40,514
bigboydan is offline
Default

Quote:
Originally Posted by Scorpion View Post

how about books like abc islands that use a different software?
Good question Scorpion. I would like to know the answer to that one myself.
Old 12-18-2007, 12:09 PM   #14 (permalink)
Ganchrow
Moderator
 
Ganchrow's Avatar
 
Join Date: 08-28-05
Location: Forest Hills, NY, Home of the Blitzkrieg Bop
Posts: 4,587
Ganchrow is offline
Default

Quote:
Originally Posted by jjgold View Post
Using these auto refresh utilities at sportsbook slows up the betting pages for other players trying to make plays.
This places considerably less load on a server than a full-page auto-refresh. This script is only requesting the text of a very small page (so no images, for example, are loaded).

EDIT: I just made a change to the script so that instead of it requesting the entire page it's only requesting the page header, which contains less than 300 bytes of data.
__________________

Last edited by Ganchrow : 12-18-2007 at 12:39 PM.
Old 12-18-2007, 02:29 PM   #15 (permalink)
Scorpion
SBR MVP
 
Scorpion's Avatar
 
Join Date: 09-04-05
Posts: 1,062
Scorpion is offline
Default