maicine
https://gyazo.com/bcf3d69fe05714febecbed5b49f2ae75
/maicine
都内でプログラマをしています。
最近はGLSLと低レイヤーを勉強してみたい。
code:script.js
// @author https://scrapbox.io/kimaben/tanabe
// https://scrapbox.io/kimaben/%E6%97%A5%E5%A0%B1%E4%BD%9C%E3%82%8BUserScript
scrapbox.PageMenu.addItem({
title: '日報作成',
image: 'https://i.gyazo.com/00c6ce2d4659ab83b80b899ce52c204d.png',
onClick: () => {
const prj = "kimaben";
const userName = "maicine";
let toDoubleDigits = function(num) {
num += "";
if (num.length === 1) {
num = "0" + num;
}
return num;
};
let date = new Date();
let yyyy = date.getFullYear();
let mm = toDoubleDigits(date.getMonth() + 1);
let dd = toDoubleDigits(date.getDate());
let hh = toDoubleDigits(date.getHours());
let MM = toDoubleDigits(date.getMinutes());
let content = "+ yyyy + "-" + mm + "-" + dd + " "+ "+ userName + " " + "日報";
let title = yyyy + "-" + mm + "-" + dd + "-" + userName;
window.open("https://scrapbox.io/" + prj + "/" + title + "?body=" + content);
}
})
#メンバー