Skip to content

Instantly share code, notes, and snippets.

@rsbohn
Created December 30, 2010 00:54
Show Gist options
  • Select an option

  • Save rsbohn/759297 to your computer and use it in GitHub Desktop.

Select an option

Save rsbohn/759297 to your computer and use it in GitHub Desktop.
KRL Ruleset for OneTrueFan
ruleset a421x14 {
meta {
name "more-true-fan"
description "Add OneTrueFan widget to a website"
author "Randall Bohn"
logging off
}
// add more domains here
dispatch {
domain "wingcash.com"
}
// Just .com here.
// Might be nice to check if the widget is already installed.
rule add_onetruefan {
select when pageview ".*"
pre {
script = <<
<script type='text/javascript'
src='http://e.onetruefan.com/js/widget.js>
</script>
>>;
}
{
append("body", script);
}
}
}
@rsbohn

rsbohn commented Dec 30, 2010

Copy link
Copy Markdown
Author

q: Why bother?
a: You can now call up OneTrueFan from a bookmarklet, no need to install the browser extension.

@rsbohn

rsbohn commented Apr 29, 2011

Copy link
Copy Markdown
Author

This now seems to redirect to videoegg.??? which is not a good thing. Perhaps I should append the script block in the head?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment