before(<selector>, <html>)
Before Place the <html>
to the inside of before (as a sibling of) the element selected by by <selector>
. The selector used can be any valid JQuery selector.
...
Code Block | ||||
---|---|---|---|---|
| ||||
ruleset a1299x164a1299x165 { meta { name "AppendBefore Example" author "nathan cerny" logging off } dispatch { // domain "exampley.com" } rule appendbefore_example_rule { select using ".*" appendbefore("#append#before", "<span style=\"color:red;\">| You fired the afterbefore rule !</span>"); } } |
The following demonstrates the preceding rule:
...