Is it possible to modify Jira UI through scripts like Jira Server?

I often want to add my own content to the original UI.For example, when you click a comment, some comment templates will be added automatically.