I learned recently that the scripts shown in Help are semi-hard-coded default scripts that you can edit by copy/pasting it in your Script Editor. I don't know why it never dawned on me that, that was a thing, but now I know! Kind of odd it's hidden in the help section.