内容をそのまま別のプロジェクトにコピーするporter用のscript
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 title = strs[0];
var body = "";
if(strs.length < 2){
}else{
body = body+strs[1];
for (i=2;i<strs.length;i++){
body = body + "\n" + strs[i];
}
}
title= encodeURIComponent(title);
body= encodeURIComponent(body);
var scheme="sbporter://scrapbox.io/"+PROJECT+"/"+title+"?body="+body;
window.open(scheme);
})();