Skip to content

Instantly share code, notes, and snippets.

@nvcnvn
Created April 1, 2014 09:25
Show Gist options
  • Save nvcnvn/9910811 to your computer and use it in GitHub Desktop.
Save nvcnvn/9910811 to your computer and use it in GitHub Desktop.
stackoverflow Unicoins cheat code
/*
Open your browser with a network tool (inpsect element in Chrome) than mine one rock.
Check the POST request to stackoverflow.com/unicoin/mine when you just finish the rock, you will find your fkey.
Paste this code to console tab, hit enter and leave the browser mine coin for you.
*/
var fkey = "your fkey";
var rocks = [];
function mine() {
if(rocks.length==0){
return
}
var r = rocks.shift();
$.post('http://stackoverflow.com/unicoin/mine?rock=' + r, {
fkey: fkey
}, function (data) {
console.log(data)
});
}
$.ajaxSetup({
dataFilter: function (data, type) {
d = JSON.parse(data);
if (typeof d.rock != 'undefined') {
rocks.push(d.rock);
}
return data;
}
});
setInterval(mine, 10500)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment