script.jsscrapbox.PopupMenu.addButton({
title: 'mps',
onClick: (str) => (
str.replace(/(\[)?([1-9]+)([mpsj])/g, (str, bracket, nums, suite) => (
bracket ? str : nums.split("").reduce((acc, num) => `${acc}[${num}${suite}.icon]`, "")
))
)
});