Skip to content

Instantly share code, notes, and snippets.

@brisbanewebdeveloper
Created November 25, 2012 04:14
Show Gist options
  • Save brisbanewebdeveloper/4142373 to your computer and use it in GitHub Desktop.
Save brisbanewebdeveloper/4142373 to your computer and use it in GitHub Desktop.
Bookmarklet - Saturday Gold Lotto Number Importer

This bookmarklet sets the numbers from data separated by comma automatically for the following URL:
Golden Casket Saturday Lotto

This bookmarklet is useful if you have specific numbers to purchase a ticket.

This bookmarklet is useless if you buy a ticket with QuickPick game.

I use this on Google Chrome in my iMac.

I have been using this bookmarklet for standard game and you can use it for other games like system 7.

How to use

  1. Create a list of numbers you want to purchase.

Each number has to be separated by comma.
Each game has to be separated by the symbol pipe (|).

Following example shows the case you want to purchase 6 games:

6,18,22,25,35,42|3,11,27,36,37,43|6,17,20,40,43,45|19,20,25,26,27,28|6,13,27,29,40,45|2,13,17,22,41,42

  1. Go to Golden Casket Saturday Lotto.

  2. Click "Mark your own games" tab.

  3. Select "games". In this example you select 6.

  4. Click the bookmarklet and paste the list in step 1. New line code should not be contained, I think.

javascript:function s(){var data = prompt("Search Text", "").split('|'); var listItems = $('.gameSelectionsDiv'); listItems.each(function() { var items = $(this).find('input.gameSelection'); var d = data[listItems.index(this)].split(','); items.each(function() { var index = items.index(this); console.log(index, d[index]); $(this).val(d[index]); }); });}s();void(0)
@brisbanewebdeveloper
Copy link
Author

Maybe you can compensate me if the amount of money you won with this bookmarklet was a lot. I mean, if you won, you know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment