jq is useful to slice, filter, map and transform structured json data.
brew install jq
| /*--- waitForKeyElements(): A utility function, for Greasemonkey scripts, | |
| that detects and handles AJAXed content. | |
| Usage example: | |
| waitForKeyElements ( | |
| "div.comments" | |
| , commentCallbackFunction | |
| ); |
| /*--- waitForKeyElements(): A utility function, for Greasemonkey scripts, | |
| that detects and handles AJAXed content. | |
| Original: https://gist.github.com/BrockA/2625891 | |
| Non-jQuery version by: Adam Katz, | |
| https://gist.github.com/adamhotep/7c9068f2196326ab79145ae308b68f9e | |
| License: CC BY-NC-SA 4.0 (*not* GPL-compatible) | |
| changes made by Adam Katz (tracked by adamhotep's github gist) are | |
| also licensed GPL v2+ (but note the CC BY-NC-SA prevents commercial use) | |
| License via https://gist.github.com/BrockA/2625891#gistcomment-1617026 |