You should paste the code into the console and press Enter. So it’ll start to work.
After rerun Obsidian this functionality will be disabled, but you can enable it again by:
- opening console
- pressing Up Arrow (which should bring the earliest executed snippet)
- press Enter to execute the snippet