How To Get Unity Launcher Window Dodge In Ubuntu 12.10 Or 13.04

The patch that adds the old window dodge autohide behaviour for the Unity Launcher hasn't been updated for Ubuntu 12.10, but an old script that implements the same behaviour, with some limitations, now works with Ubuntu 12.10 and even 13.04.