Skip to content

Instantly share code, notes, and snippets.

@darkfeline
darkfeline / waitForKeyElements.js
Last active July 3, 2016 00:42 — 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
);
@darkfeline
darkfeline / ext_ctags.py
Last active December 20, 2015 01:08 — forked from shimizukawa/ext_ctags.py
Fixed for Python 3. Plop in sphinx/ext and enable the extension in the config.
# -*- coding: utf-8 -*-
import os
def doctree_resolved(app, doctree, docname):
filename = os.path.join(app.confdir, app.config.ctags_filename)
# load existent ctag
ctags = load_ctag(filename)