Created
December 30, 2010 00:54
-
-
Save rsbohn/759297 to your computer and use it in GitHub Desktop.
KRL Ruleset for OneTrueFan
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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); | |
| } | |
| } | |
| } |
Author
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
q: Why bother?
a: You can now call up OneTrueFan from a bookmarklet, no need to install the browser extension.