The fastest way to deploy this script is to organize your pages in a spreadsheet. According to the WordPress Codex, you can use page names or post IDs as conditional tags in this script.
Place either the page names or post IDs in column A of your spreadsheet. Check out the screenshot, you can see that all you need here is the post title, which is often used as the H1 for pages.
Make a copy of this Google Sheet template to expedite the steps after this.