Skip to content

Instantly share code, notes, and snippets.

@aaronfrost
Created April 5, 2011 07:14
Show Gist options
  • Save aaronfrost/903164 to your computer and use it in GitHub Desktop.
Save aaronfrost/903164 to your computer and use it in GitHub Desktop.
This should work, but doesn't. Not sure why. Can someone tell me?
dispatch {
// Some example dispatch domains
// domain "example.com"
domain "google.com"
}
global {
}
rule temp_rule is active{
select when pageview ".*"
pre{
}
{
notify("111",'123');
emit<<
var tempapp = KOBJ.get_application("a710x19");
tempapp.raise_event("temp2");
>>;
}
}
rule temp2 is active{
select when web temp2
pre{
}
{
notify("222",'<div id="fbp_fblogo">123</div>');
emit<<
console.log("TEMP2'd");
>>;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment