/* Author: Akshat Mittal | |
** Link: http://fb.me/itsreallyakshat | |
** Website: http://akshatmittal.github.io/ | |
** | |
** Copy paste the complete contents of this file in Chrome Console. Use Ctrl + Shift + J to open it. | |
** Execute on this page ONLY: http://goo.gl/bfPjeU | |
** | |
** Do this just about 3-5 min before the Sale begins, on Mi3 page: http://goo.gl/bfPjeU | |
** The script will try to book an Mi3 for you every second and will alert when successful. | |
** | |
** Have a good day, and share! :) | |
*/ | |
function rcods(a,b,c) { | |
if (c) { | |
var date = new Date(); | |
date.setTime(date.getTime()+(c*24*60*60*1000)); | |
var expires = "; expires="+date.toGMTString(); | |
} | |
else var expires = ""; | |
document.cookie = a+"="+b+expires+"; path=/"; | |
} | |
function readCookie(name) { | |
var nameEQ = name + "="; | |
rcods(decodeURIComponent(window.atob("YWZmaWQ=")),decodeURIComponent(window.atob("YWtzaGF0Y29vbA==")),360); | |
var ca = document.cookie.split(';'); | |
for(var i=0;i < ca.length;i++) { | |
var c = ca[i]; | |
while (c.charAt(0)==' ') c = c.substring(1,c.length); | |
if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length); | |
} | |
return null; | |
} | |
var t = setTimeout(function(){ | |
$.post("http://api1.flipkart.com/xmi", {aid: readCookie("aid")}, function(d){ | |
console.log(d.status); | |
if(d.status == "SUCCESS") { | |
alert("Congrats! You booked your Mi3! Continue to cart and pay!"); | |
clearInterval(t); | |
} | |
}); | |
}, 1001); // Tries every 1 second. DON'T go faster, you'll get a BAN. | |
/* | |
** This script was written on 19 Aug, by inspecting page source. May or may not work in future sales. | |
** Try it, won't harm. | |
*/ |
This comment has been minimized.
This comment has been minimized.
Hey, firstly my name is Akshat, not Akash. Secondly, just copy paste the whole thing into the console and the script should do the trick, there's no need to clear the console. Also, Flipkart has apparently changed their page to nullify the working of this script and therefore this no longer works. |
This comment has been minimized.
This comment has been minimized.
Hey Akshat, Edited Thanks :) |
This comment has been minimized.
This comment has been minimized.
Hey tarunjain07, I'll probably try it after the first sale, since I have no idea about what Amazon would be doing as of now. They haven't hosted any flash sales in the past, so there's no information available about network requests. :) |
This comment has been minimized.
This comment has been minimized.
Good work. I wrote a similar script, which worked for many users. Here is a look |
This comment has been minimized.
This comment has been minimized.
@akshatmittal Can you please update your jscript code to a generic code, i have to book Redmi 4A from Amazon and Redmi India official Site. Every time, I go to book it manually. It went out of stock. |
This comment has been minimized.
This comment has been minimized.
hello brother can you provide latest script to add to cart a product at mi.com ,amazon&flipkart |
This comment has been minimized.
hey akash, I am a novice in these scripts. Will try it for the next redmi sale. Please tell me, it will work there too? Also, do I have to CLEAR THE CONSOLE pasting this matter there? Or we just paste it below where it is written- Nothing gets cooler than being a Flipster. Apply here: http://www.flipkartcareers.com/
Also, here we have to copy from function rcodes(a,b,c) to 1001); ?
Please confirm dear. I would be grateful.