[UserScript] Advanced Context Sentence

Any idea why this becomes broken when using Stroke Order Diagram?