Skip to content

Instantly share code, notes, and snippets.

View martindevans's full-sized avatar

Martin Evans martindevans

View GitHub Profile
@martindevans
martindevans / waitForKeyElements.js
Created May 30, 2016 16:26 — 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
);
{
"mods": [
{
"name": "base",
"enabled": "true"
},
{
"name": "5dim_automatization",
"enabled": "true"
},
// .h file
#pragma once
#include "Ship_Component_Interface.generated.h"
/**
*
*/
UINTERFACE(MinimalAPI)
class UShip_Component_Interface : public UInterface
// .h file
#pragma once
#include "Ship_Component_Interface.generated.h"
/**
*
*/
UINTERFACE(MinimalAPI)
LoadHTML(@"
<html>
<body style='font-family: Helvetica, Arial, sans-serif;'>
<h1>Awesomium Rocks!</h1>
<p>This web-page was loaded with HTML directly from within Unity3D.</p>
<h2>Environment Info</h2>
<dl>
<dt>Unity Version</dt><dd id='stat1'></dd>
<dt>Unity Platform</dt><dd id='stat2'></dd>