Sure, I've shared a number of macros here that demonstrate a variety of techniques. The one above, for example, is included in Literary Toolbox IV and Text Toolbox II.
Some of this gets rather involved. The JavaScipt in Macro Reporter Macro, for example, took a while to write. But the code for ~+A Few Favorites Macro+~ (A Few Favorites Macro (v9.1)) is pretty straightforward and very flexible.
If you sketch out a small example of what you're trying to do, I can give you the specific code for it.
The point being that because Keyboard Maestro includes WebKit, Apple's browser technology, you can do anything you see on the Web within Keyboard Maestro.