Bookmaker/CRIS Stay Logged-In Script for Firefox

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Ganchrow
    SBR Hall of Famer
    • 08-28-05
    • 5011

    #1
    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.
SBR Contests
Collapse
Top-Rated US Sportsbooks
Collapse
Working...