script.jsscrapbox.PopupMenu.addButton({
title: (text) => /https:\/\/gyazo\.com\/[a-z0-9]+/.test(text) ? "\uf565" : "",
onClick: (text) => {
const id = text.match(/https:\/\/gyazo\.com\/([a-z0-9]+)/)?.[1];
if (!id) return;
window.open(`https://gyazo.com/${id}/transform`);
},
});