選択範囲をGoogle検索するUserScript
code:script.js
scrapbox.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)});
}
});
UserScript.icon