script.jsscrapbox.PopupMenu.addButton({
title: 'Google Search',
onClick: text => {
// 記法を解除する
const keyword = text.split(/\n/)
.map(line => line.replace(/\[(.*)\]/g,'$1')).join('\n');
window.open(`https://www.google.com/search?q=${encodeURIComponent(keyword)}`);
}
});