Skip to content

Instantly share code, notes, and snippets.

@reider-roque
reider-roque / waitForKeyElements.js
Created January 22, 2016 14:54 — forked from BrockA/waitForKeyElements.js
A utility function, for Greasemonkey scripts, that detects and handles AJAXed content.
/*--- waitForKeyElements(): A utility function, for Greasemonkey scripts,
that detects and handles AJAXed content.
Usage example:
waitForKeyElements (
"div.comments"
, commentCallbackFunction
);
[
{
"args": null,
"command": "select_all"
},
{
"args":
{
"set_translate_tabs": true
},
import ctypes
import ctypes.wintypes
import os
import threading
import Queue
import uuid
__all__ = ['NotificationIcon']
# Create popup menu