tsuzumik
https://scrapbox.io/files/637f516b9d1437002320d0ab.jpg
this is tsuzumik’s page
図らずも火と湖みたいな色してるトークン
火熾しとさざ波.icon
code:script.js
scrapbox.test = "test";
import {modalController} from "../addCustomModal/export.js";
import {askChatGpt} from "../askChatGpt/export.js";
import {hopBot} from "../hoppingBot/export.js";
scrapbox.tzmk_askChatGpt = askChatGpt;
scrapbox.tzmk_modalController = modalController;
scrapbox.tzmk_hopBot = hopBot;
scrapbox.PopupMenu.addButton({
title: "AskChatGPT",
onClick: (text) => {
scrapbox.tzmk_modalController.openModal(text);
},
});
function newPage(title, content, project="tsuzumik-online") {
let encoded = encodeURI(content.join('\n'));
window.open(https://scrapbox.io/${project}/${title}?body=${encoded}, "_blank");
}
scrapbox.PopupMenu.addButton({
title: "Go to private",
onClick: (text) => {
let title = scrapbox.Page.title;
newPage(title, [from [/tsuzumik-online/${title}], text], "tsuzumik-private");
},
});
import "../addGptMenu/export.js";
読み込んでるscript
code:style.css
@import "../hoppingBot/style.css";
@import "../addCustomModal/style.css";