Skip to content

Instantly share code, notes, and snippets.

View madhawa-se's full-sized avatar
😃
hmm

madhawa priyashantha madhawa-se

😃
hmm
  • mad-logic
  • srilanka
View GitHub Profile
@madhawa-se
madhawa-se / _ff-addon-snippet-WINAPI_SendMessageWMCOPYDATA.js
Last active August 29, 2015 14:28 — forked from Noitidart/_ff-addon-snippet-WinAPI_SendMessage.js
_ff-addon-snippet-WINAPI_SendMessageWMCOPYDATA - How to use SendMessage. [jsctypes] [winapi]
Cu.import('resource://gre/modules/Services.jsm');
Cu.import('resource://gre/modules/ctypes.jsm');
if (ctypes.voidptr_t.size == 4 /* 32-bit */ ) {
var is64bit = false;
} else if (ctypes.voidptr_t.size == 8 /* 64-bit */ ) {
var is64bit = true;
} else {
throw new Error('huh??? not 32 or 64 bit?!?!');
}
// ==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) {
void main() {
// fetchUserOrder()
// .then((value) => print(value))
// .catchError((error) => print(error));
fetchUserOrder()
.then((value) => print(value))
.catchError((error) => showButton());
}