script.jsimport {makePageInNewTab, getPageText} from "/api/code/ScriptDevUtils/main/main.js";
scrapbox.PageMenu().addMenu({
title: "Export",
image: "\uf56e",
onClick: () => {
const project = prompt("エクスポート先のプロジェクト名は?");
const title = scrapbox.Page.title;
const text = getPageText();
makePageInNewTab(project, title, text);
}
});