Skip to content

Instantly share code, notes, and snippets.

@madhawa-se
Created December 17, 2016 17:31
Show Gist options
  • Save madhawa-se/8f3f23f3fb0d0c816367430749e0d6dd to your computer and use it in GitHub Desktop.
Save madhawa-se/8f3f23f3fb0d0c816367430749e0d6dd to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name pizza
// @namespace pizzaaa
// @description pizza hack
// @include https://www.weloveitstudio.com/facebook/pizzahut*
// @version 1
// @grant none
// ==/UserScript==
function pizzamain() {
function getToken(score) {
var token = score * 77 + 71995;
return token;
}
window.setscore=function (score) {
var token = getToken(score);
$.ajax({
type: 'post',
url: 'https://www.weloveitstudio.com/facebook/pizzahut/granddipper_fb/get.php',
data: 'score=' + score + '&token=' + token,
success: function (data) {
console.log('success');
console.log(data);
}
});
}
// setscore(score);
//setTimeout(window.checkScore, 1000);
}
var script = document.createElement('script');
script.appendChild(document.createTextNode('(' + pizzamain + ')();'));
(document.body || document.head || document.documentElement).appendChild(script);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment