Skip to content

Instantly share code, notes, and snippets.

@scottpayne
scottpayne / waitForKeyElements.js
Last active December 21, 2022 10:23 — 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
);
# c-0001.c-msedge.net
# dl.delivery.mp.microsoft.com
# do.dsp.mp.microsoft.com
# download.windowsupdate.com
# update.microsoft.com
# windowsupdate.com
# windowsupdate.microsoft.com
clientupdates.dropboxstatic.com

Keybase proof

I hereby claim:

  • I am scottpayne on github.
  • I am scottpayne (https://keybase.io/scottpayne) on keybase.
  • I have a public key ASCa-PFVl3ltdNX8cBREnZJn0bB3dd88iosa5CO18GAdAQo

To claim this, I am signing this object:

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
<?php
/*
* This is not a full module, just a demo of how I started working with
* the Storage API Drupal module.
*
* I have working code that looks a lot like this, so it should work more
* or less. Hopefully it will be a starting point for other people to work
* with Storage API.
*/
<?php
/**
* @file views-view-grid.tpl.php
* Default simple view template to display a rows in a grid.
*
* - $rows contains a nested array of rows. Each row contains an array of
* columns.
*
* @ingroup views_templates
*/