Hacking Dominos Coupon Generator – Free Dominos Pizza Coupons & Discounts
Do you like this story?
After multiple failed attempts to place an order of pizza and getting tired of taking follow-ups from folks at Axis Bank and Bill Desk (the gateway that takes care of Dominos's online pizza orders) , I was frustrated a lot. Then , I came across Domino's Slot machine coupon generator. An innocent looking random coupon generator that is purely JS based and is easily hackable. NOW I AM NOT SAYING I HACKED IT AND ORDERED FREE PIZZA's , the payment gateway sucks soo much that I didn't ordered anything. But yes, I do have something to share with you.
Fire up your Google Chrome (that's enough) and open
http://pizzaonline.dominos.co.in/slot-machine/process-slot.php
You will see the Coupon Generator, fill in the captcha and play it, in normal circumstances , chances are -
- You will win a coupon , if you are feeling lucky, you can try once more and then if you win again, you will have to deal with the final discount coupon you get.
- You will get a "Try Again", you can try till the case 1 is fulfilled.

Lets turn the tables ,fire up developer console by pressing F12 .

navigate to scripts – > slot.js
Open slots and navigate to this code

and change the attempts value to anything you wish

Now navigate to this code

and change the value to 1

Now time to change duration values
$('#slot'+(slots+1)).animate( { backgroundPosition:"(0px "+bgPos+"px)"}, { duration: (10000+(slots*500)), complete: function(){
limit++; //console.log(limit);
if(limit == 4){
Change the subjected function to
$('#slot'+(slots+1)).animate( { backgroundPosition:"(0px "+bgPos+"px)"}, { duration: (1+(slots*1)), complete: function(){
limit++; //console.log(limit);
if(limit == 4){
once done , slot timers and duration will be ultra quick.
Press Ctrl + S and click on Start / Try Again and see the results : ) Cool huh ?
Now tinker with some innocent looking functions for your experiment : ] and enjoy.
Check this For loop and especially check for #slot values and value of i , also, some crazy things can be done by changing the pixel values
if(buttonState == 'Try Again' || buttonState == 'Please wait...'){
var i=1;
for(i=1;i<=4;i++)
$('#slot'+i).css('background-position','0px 0px');
}
Or Look for this function
$.post('process-slot.php',{ session_id : session_id},function(json){
var slot_result = slot_result_desc = ''; var limit = slots = 1;
Now again, I wont be divulging much here : P , you can modify completely the way the slot generator works and generate according to your whims : ] Work your way out.
PS : I did went into the site looking for coupons by being a Dominicon but the coupons there are just pathetic and almost same for all the traits like lazycon/freebicon etc.
Back to Cybernating.

About the author : Rishabh Dangwal
Rishabh Dangwal is a no-nonsense network geek who has got a thing for guitars, retro games and emulators. When he is not tinkering with devices and gadgets, he can be found reading novels by Fredrick Forsyth. Follow him on Twitter



35 Responses to “Hacking Dominos Coupon Generator – Free Dominos Pizza Coupons & Discounts”
August 13, 2012 at 2:59 AM
Unique one my friend.
August 20, 2012 at 4:37 PM
anybdy,,,,, found it working???
August 24, 2012 at 5:11 PM
I am not able to edit scripts in chrome. Can you please tell me how to do it?
September 6, 2012 at 8:07 PM
kindly explain how to save the javascript after changing and how to apply the changes effectively. Ctrl+S not working or maybe i dont understand it properly.
Thanks in Advance
Harsh
September 12, 2012 at 4:44 PM
hey can u help me i don't know js really, but wanna have a jackpot what should i change?
September 15, 2012 at 12:36 PM
Yeah, You can edit to play it for fun ! But you can't get the slot to generate a jackpot.
September 15, 2012 at 6:14 PM
It is not working....dude.::))
September 27, 2012 at 6:42 PM
brilliant
October 5, 2012 at 7:41 PM
Won't really help because the result is generated by process-slot.php
Our slot.js is only trying to fetch the values and prepare the UI. So this can just manipulate UI, not actual results.
But of course, we can modify slot.js and keep doing brute force on it till we win :P
October 6, 2012 at 8:42 AM
Awesome!! I found it too. :-) I love the chrome's javascript console.
October 19, 2012 at 6:33 PM
i am not able to edit in dat...plz help
October 20, 2012 at 5:01 PM
I am unable to edit the script in Chrome, its read only.. not getting edited. Please help
November 1, 2012 at 4:34 PM
it doesnt wrk
November 6, 2012 at 5:59 PM
how to edit duration values
November 6, 2012 at 6:00 PM
how to edit duration values
November 9, 2012 at 5:01 AM
not working.. Most I get is 20% off, nothing else. Any help? How can I get the desired results? one on one free and other stuff? thanks
November 9, 2012 at 5:02 AM
for(slots = 0; slots <= json['slot_result_position'].length; slots++){
keeps coming after 3-4 tries, also no beneficial results
November 9, 2012 at 5:21 AM
not working.. Most I get is 20% off, nothing else. Any help?
November 21, 2012 at 2:20 PM
not working
November 21, 2012 at 2:21 PM
NOT WORKING
December 4, 2012 at 3:42 PM
line 261 is showing error after a few attempts
December 4, 2012 at 5:14 PM
Increasing attempts value doesn't help. The number of attempts increases just by one.
December 6, 2012 at 5:09 PM
how can we change the value? it cant be edited!!
December 11, 2012 at 4:37 PM
which chrome verion u use bcz in my chorme m nt able to see script option nd nt able to edit
saurabharya1995@gmail.com
December 27, 2012 at 2:09 PM
Hi, I really like your blog post about hacking dominos coupon generator.
But I am not able to get Jackpot coupon. I tried windows.slots_attempts == 10
Case 4 window.lastAttempt = 1
also var limit = slots =1
but still I am not able to get the jackpot coupons.
Thanks.
January 1, 2013 at 11:30 AM
can we use it in domino's to order free pizza?
January 11, 2013 at 12:52 PM
I tried out, the hack only increases number of attempts. The actual control is in http://pizzaonline.dominos.co.in/slot-machine/process-slot.php. It provides the coupon in json. I tried got 20% off coupon on several attempts, it seems they never give 100% off coupon, there isn't any :). Also the process-slot.php uses the cookies dont know how.
Another way of increasing number of attempts is by modifying the json before firing the call to process-slot.php.
January 14, 2013 at 8:19 PM
this is not a hack mate...this just increases the result time of the slot machine...frankly speaking this is simply a wastage of time
January 31, 2013 at 5:20 PM
http://dominoshack.blogspot.in/2013/01/domino-slot-machine-trick.html
March 17, 2013 at 2:54 PM
How do you edit javascript. The firebug dont allow the same
April 15, 2013 at 9:00 PM
can some1 give me jackpot code... please if you are getting n not using
April 24, 2013 at 11:40 AM
hey thanks for sharing the way to get free domino's discount coupons...
Dominos Coupons
April 25, 2013 at 5:14 PM
unable to change values
May 11, 2013 at 12:39 PM
This is lame. It just allows you to click and see 'Try again' faster
May 22, 2013 at 3:21 PM
thats a gr8 hack ..but i get an error at line 263 after few attempts. any idea how this can be eliminated?
for(slots = 0; slots <= json['slot_result_position'].length; slots++)
and is thr any tweak in the duration value to strike the jackpot at the very first attempt?.
Post a Comment
Need to say something ? Spell it out :)