Modifications to script editors.

Plus plugin event uncoupling.