内容をそのまま別のプロジェクトにコピーするporter用のscript
code:script.js
(function(){
if (scrapbox.Page.lines) {
var str = scrapbox.Page.lines.map(line => line.text).join('\n');
}
var PROJECT="choiyakiBox";
var strs = str.split("\n");
var body = "";
if(strs.length < 2){
}else{
for (i=2;i<strs.length;i++){
body = body + "\n" + strsi; }
}
title= encodeURIComponent(title);
body= encodeURIComponent(body);
var scheme="sbporter://scrapbox.io/"+PROJECT+"/"+title+"?body="+body;
window.open(scheme);
})();