See thread for instructions.
Download my Script-Fu and save to the script directory. To know the directory with GIMP menu: Edit → Preferences: Folders → Scripts. If you already had GIMP open when you saved the script, refresh the scripts with menu: Filters → Script-Fu → Refresh Scripts