Created
December 17, 2016 17:31
-
-
Save madhawa-se/8f3f23f3fb0d0c816367430749e0d6dd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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