@Johani has a great and very informative post that talks some about how to add classes posts via JavaScript:
However, from my testing it appears that small actions (excluding locks/unlocks/pins, which count as full posts) are excluded from this method. What would be the best way to accomplish the same thing, but also include small actions?
We would like to apply a class to every other post/small-action, so we need something that can select both of them rather than attempting to target them individually. For example, we’d like to be able to target the bolded lines in the following example:
Post
Post
Post
Small Action
Post
Post
Small Action
Post
Small Action
Post
Post