mamoto
自分のページ
https://scrapbox.io/files/5ff5729bb1e563001c46b220.png
初めまして。
都内のIT企業でインフラエンジニアをしています。
ザラッとした技術情報を残していきます。(自分のためにね)
あと、どうでもいい雑記もね。
技術情報は、私による私のための記録のため、
情報に誤りがあっても自己責任でお願いします。
# 以下、UserScript UserCSS
# バレットジャーナル記法
code:style.css
/* 全体設定 */
visibility: hidden;
display: inline-block;
position: relative;
min-width: 1em;
line-height: 1;
font-size: 23px;
padding: 0px;
boder: solid 1px;
margin: 0px 5px;
}
/* 全体設定 */
visibility: visible;
position: absolute;
left: 0;
boder: solid 1px;
font-weight: bold;
}
.line.cursor-line ahref="./x" { visibility: visible } .line.cursor-line ahref="./x"::after { visibility: hidden } /* 個別設定 */
.line ahref="./-"::after{content: '\002212';} /* ハイフン*/ .line ahref="./x"::after{content: '\0000D7';} /* × */ .line ahref="./d"::after{content: '\002022';} /* ドット */ .line ahref="./r"::after{content: '\00FFEB';} /* → */ .line ahref="./l"::after{content: '\00FFE9';} /* ← */ .line ahref="./i"::after{content: '\00FFEE';} /* 〇 */ code:script.js
const menuPersonal = "個人";
// 個人メニュー作成
scrapbox.PageMenu.addMenu({
title: menuPersonal,
});
// 個人デイリー作成
scrapbox.PageMenu(menuPersonal).addItem({
title: 'デイリー作成',
onClick: () => {
const today = new Date();
let pageTitle = today.getFullYear() + "/" + ("0" + (today.getMonth() + 1)).slice(-2) + "/" + ("0" + today.getDate()).slice(-2);
const monthly = today.getFullYear() + "/" + ("0" + (today.getMonth() + 1)).slice(-2);
// タグ テンプレート設定
const sep = "#";
let query = "";
// クエリー生成
for(let i = 0; i < tags.length; i++) {
query = query + " " + sep + tagsi; }
query = encodeURIComponent(query);
pageTitle = encodeURIComponent(pageTitle);
// URL生成&リダイレクト
const url = projectRoot+ pageTitle + "?body=" + query;
location.href = url;
},
});
// 個人デイリー移動
scrapbox.PageMenu(menuPersonal).addItem({
title: 'デイリー移動',
onClick: () => {
const today = new Date();
let pageTitle = today.getFullYear() + "/" + ("0" + (today.getMonth() + 1)).slice(-2) + "/" + ("0" + today.getDate()).slice(-2);
pageTitle = encodeURIComponent(pageTitle);
const url = projectRoot + pageTitle;
location.href = url;
},
});
// 個人マンスリー作成
scrapbox.PageMenu(menuPersonal).addItem({
title: 'マンスリー作成',
onClick: () => {
const today = new Date();
let pageTitle = today.getFullYear() + "/" + ("0" + (today.getMonth() + 1)).slice(-2);
// タグ テンプレート設定
const sep = "#";
let query = "";
// クエリー生成
for(let i = 0; i < tags.length; i++) {
query = query + " " + sep + tagsi; }
pageTitle = encodeURIComponent(pageTitle);
query = encodeURIComponent(query);
// URL生成&リダイレクト
const url = projectRoot + pageTitle + "?" + query;
location.href = url;
},
});
// 個人マンスリー移動
scrapbox.PageMenu(menuPersonal).addItem({
title: 'マンスリー移動',
onClick: () => {
const today = new Date();
let pageTitle = today.getFullYear() + "/" + ("0" + (today.getMonth() + 1)).slice(-2);
pageTitle = encodeURIComponent(pageTitle);
const url = projectRoot + pageTitle;
location.href = url;
},
});