cFQ2f7LRuLYP
https://svg-hosting.vercel.app/api/svg?url=https://scrapbox.io/api/code/issac-37765679/返本還源.svg/返本還源.svg
https://svg-hosting.vercel.app/api/svg?url=https://scrapbox.io/api/code/issac-37765679/cFQ2f7LRuLYP/404.svg
https://gyazo.com/c448e17948940403dcab9bd63615b3b3
https://gyazo.com/89d674111f3692c4d66e1cc0a90ff6ec
https://gyazo.com/8c806fb77af9a2ec60954b745e309600
https://gyazo.com/40110a366fccb15f4d97136e1559f66e
https://svg-hosting.vercel.app/api/svg?url=https://scrapbox.io/api/code/issac-37765679/リンク切れアイコン.svg/404.svg
https://gyazo.com/e6e2460cae0a1fcccd644fcc27cd15b7
ここに桜のやつがあった
あ,お正月おわったはるひ.icon
春爛漫cFQ2f7LRuLYP.icon
https://gyazo.com/7568d0f6e3046e9e05c98852a5d467e0
https://svg-hosting.vercel.app/api/svg?url=https://scrapbox.io/api/code/issac-37765679/cFQ2f7LRuLYP/myicon.svg
code:myicon.svg
<rect x="0" y="0" width="100%" height="100%" fill="#d5e4f5" />
<path d="M 235.302407 245.20869 L 235.292059 245.153175 L 235.321836 245.312751 L 235.412784 245.269921 L 235.418315 245.093635 L 235.233732 245.015775 L 235.058245 245.153222 L 235.070272 245.399408 L 235.279028 245.561671 L 235.563578 245.526476 L 235.771616 245.284525 L 235.778472 244.948885 L 235.565933 244.653042 L 235.218131 244.525249 L 234.834535 244.601864 L 234.510546 244.892543 L 234.366691 245.324224 L 234.443933 245.788642 L 234.723887 246.180861 L 235.182858 246.438207 L 235.713267 246.484635 L 236.261488 246.302269 L 236.69811 245.924344 L 236.985826 245.372107 L 237.058959 244.762341 L 236.911338 244.121024 L 236.573874 243.577698 L 236.053312 243.138514 L 235.381594 242.865053 L 234.611335 242.809167 L 233.891702 242.974434 L 233.209236 243.354844 L 232.628059 243.942902 L 232.211116 244.712057 L 232.024001 245.511349 L 232.042466 246.374376 L 232.286987 247.24855 L 232.764662 248.074956 L 233.36786 248.710243 L 234.127828 249.220593 L 235.019189 249.567792 L 236.007349 249.718657 L 237.049466 249.647232 L 238.09593 249.336817 L 239.092345 248.781688 L 239.863547 248.115717 L 240.520595 247.286333 L 241.029402 246.312478 L 241.358887 245.220108 L 241.482393 244.041744 L 241.379064 242.815748 L 241.035086 241.585309 L 240.444776 240.397168 L 239.611432 239.300108 L 238.740309 238.490936 L 237.721815 237.806856 L 236.573315 237.274064 L 235.316736 236.916454 L 233.978284 236.754841 L 232.588027 236.806208 L 231.179355 237.083009 L 229.78831 237.592549 L 228.452804 238.336453 L 227.21174 239.310257 L 226.104048 240.503129 L 225.167659 241.897748 L 224.438433 243.470332 L 224.026325 244.836557 L 223.78267 246.27948 L 223.720252 247.778779 L 223.849463 249.312138 L 224.178011 250.855517 L 224.710644 252.383469 L 225.448925 253.869493 L 226.391034 255.286427 L 227.531632 256.606873 L 228.861763 257.803642 L 230.368821 258.850224 L 232.036575 259.72127 L 233.845252 260.393076 L 235.77169 260.844068 L 237.789553 261.055275 L 239.869605 261.010781 L 241.980061 260.698153 L 244.086983 260.108825 L 246.154745 259.238448 L 248.146541 258.087172 L 249.568028 257.042133 L 250.909909 255.845601 L 252.156498 254.503013 L 253.292405 253.021389 L 254.302689 251.409328 L 255.173019 249.676985 L 255.889828 247.83604 L 256.440473 245.89964 L 256.813388 243.882338 L 256.998235 241.800004 L 256.986051 239.669735 L 256.769378 237.50973 L 256.342398 235.339171 L 255.701049 233.178076 L 254.843127 231.04714 L 253.768385 228.967574 L 252.478602 226.960917 L 250.977653 225.048852 L 249.271546 223.253002 L 247.368451 221.594731 L 245.278705 220.094927 L 243.0148 218.773791 L 240.591343 217.650617 L 238.025008 216.743581 L 235.33445 216.06952 L 232.540213 215.643729 L 229.664603 215.479753 L 226.73155 215.589195 L 223.766444 215.98153 L 220.795952 216.663936 L 217.847816 217.641137 L 214.950635 218.915267 L 212.133624 220.485746 L 209.426371 222.349184 L 206.858563 224.499303 L 204.45972 226.926889 L 202.258905 229.619762 L 200.915732 231.555035 L 199.681323 233.596329 L 198.563578 235.737857 L 197.570112 237.973267 L 196.708219 240.295655 L 195.984832 242.697582 L 195.406482 245.171086 L 194.979267 247.707706 L 194.708809 250.298504 L 194.600222 252.934089 L 194.658079 255.604643 L 194.886374 258.299955 L 195.288498 261.009449 L 195.867204 263.722224 L 196.624579 266.427085 L 197.562024 269.112586 L 198.680225 271.76707 L 199.979135 274.378712 L 201.457952 276.935564 L 203.115109 279.425604 L 204.948255 281.836778 L 206.954251 284.157055 L 209.129156 286.374476 L 211.468228 288.477204 L 213.965921 290.45358 L 216.61589 292.292169 L 219.410995 293.981822 L 222.34331 295.511724 L 225.404136 296.871447 L 228.584022 298.051009 L 231.872777 299.040918 L 235.259501 299.832234 L 238.732609 300.416611 L 242.27986 300.786351 L 245.888396 300.934456 L 249.544775 300.854668 L 253.235014 300.541517 L 256.944635 299.990366 L 260.658708 299.197447 L 264.361907 298.159904 L 268.038561 296.875823 L 271.672709 295.344266 L 275.248162 293.565302 L 278.74856 291.540028 L 282.157443 289.270595 L 285.45831 286.760222 L 288.634687 284.013212 L 291.670203 281.034963 L 294.548652 277.831969 L 297.254071 274.411825 L 299.770807 270.783222 L 302.083595 266.955938 L 304.177631 262.940829 L 306.038639 258.749803 L 307.652953 254.395807 L 309.007581 249.892792 L 310.090283 245.255686 L 310.889635 240.500352 L 311.395103 235.64355 L 311.597105 230.702889 L 311.487076 225.696772 L 311.057532 220.644346 L 310.302125 215.565435 L 309.215701 210.480479 L 307.794351 205.410464 L 306.035459 200.376846 L 303.937746 195.401479 L 301.501307 190.506529 L 298.727649 185.714391 L 295.619719 181.047604 L 292.18193 176.52876 L 288.420177 172.180411 L 284.341851 168.024973 L 279.95585 164.084631 L 275.272575 160.381241 L 270.30393 156.93623 L 265.063304 153.770497 L 259.565563 150.904311 L 253.827017 148.357211 L 247.865393 146.147909 L 241.699795 144.294187 L 235.350665 142.812802 L 228.839724 141.719391 L 222.189921 141.028374 L 215.425367 140.752866 L 208.571263 140.904589 L 201.653821 141.493786 L 194.700189 142.529145 L 191.218516 143.216404 L 187.738351 144.017716 L 184.263308 144.933697 L 180.797042 145.964849 L 177.343244 147.111564 L 173.905639 148.37412 L 170.487985 149.752676 L 167.094063 151.247276 L 163.72768 152.857844 L 160.392661 154.584182 L 157.092849 156.425971 L 153.832098 158.382768 L 150.61427 160.454007 L 147.443232 162.638996 L 144.322852 164.936915 L 141.256993 167.346819 L 138.249513 169.867635 L 135.304257 172.498162 L 132.425053 175.237069 L 129.615712 178.082898 L 126.88002 181.034062 L 124.221733 184.088843 L 121.644578 187.245396 L 119.152242 190.501749 L 116.748372 193.855798 L 114.436571 197.305315 L 112.220392 200.847944 L 110.103333 204.481202 L 108.088834 208.202482 L 106.180274 212.009055 L 104.380964 215.898065 L 102.694145 219.866537 L 101.122981 223.911379 L 99.670559 228.029375 L 98.339881 232.217199 L 97.133861 236.471407 L 96.055321 240.788443 L 95.106987 245.164642 L 94.291487 249.596233 L 93.611343 254.079337 L 93.068968 258.609975 L 92.666666 263.184068 L 92.406624 267.797439 L 92.290909 272.445821 L 92.321467 277.124854 L 92.500115 281.830091 L 92.828542 286.557005 L 93.308303 291.300985 L 93.940817 296.057347 L 94.727361 300.821333 L 95.669071 305.58812 L 96.766937 310.352818 L 98.0218 315.110479 L 99.434348 319.856099 L 101.005117 324.584623 L 102.734485 329.29095 L 104.622672 333.969938 L 106.669735 338.616407 L 108.875568 343.225147 L 111.239903 347.790918 L 113.762299 352.308462 L 116.442151 356.772501 L 119.278682 361.177747 L 122.270943 365.518906 L 125.417812 369.790683 L 128.717994 373.987788 L 132.170018 378.104939 L 135.772239 382.136874 L 139.522835 386.078348 L 143.419809 389.924147 L 147.460985 393.669088 L 151.644012 397.308026 L 155.966364 400.835862 L 160.425337 404.247545 L 165.018054 407.538084 L 169.74146 410.702545 L 174.592329 413.736067 L 179.567263 416.633859 L 184.662691 419.391211 L 189.874872 422.003499 L 195.1999 424.466189 L 200.633701 426.774845 L 206.172036 428.925135 L 211.810507 430.912834 L 217.544555 432.733833 L 223.369466 434.384141 L 229.280371 435.859897 L 235.272253 437.157366 L 241.339944 438.272956 L 247.478135 439.203212 L 253.681379 439.94483 L 259.944088 440.494658 L 266.260545 440.849703 L 272.624905 441.007134 L 279.0312 440.96429 L 285.473341 440.718682 L 291.945127 440.267999 L 298.440248 439.610113 L 304.952288 438.743084 L 311.474736 437.665161 L 318.000983 436.374793 L 324.524337 434.870624 L 331.038022 433.151504 L 337.535187 431.216492 L 344.008911 429.064855 L 350.452211 426.696077 L 356.858045 424.109859 L 363.219321 421.306122 L 369.528906 418.285011 L 375.779627 415.046899 L 381.964283 411.592386 L 388.07565 407.922305 L 394.106486 404.037719 L 400.049543 399.939929 L 405.897573 395.630472 L 411.643332 391.111123 L 417.279591 386.383896 L 422.799142 381.451045 L 428.194808 376.315065 L 433.459449 370.978694 L 438.585968 365.444909 L 443.567323 359.716931 L 448.396532 353.798221 L 453.066682 347.69248 L 457.570938 341.403652 L 461.902547 334.935916 L 466.054853 328.293692 L 470.021297 321.481634 L 473.795431 314.504632 L 477.370926 307.367808 L 480.741575 300.076512 L 483.901304 292.636323 L 486.844184 285.053045 L 489.564431 277.3327 L 492.056419 269.481532 L 494.314688 261.505996 L 496.333948 253.412758 L 498.109091 245.20869 L 498.109091 245.20869 " clip-path="url(#p42bb652043)" style="fill: none; stroke-width: 12; stroke-linecap: square" id="path"/>
<text font-size="15.8" fill="#848fce">
<textPath href="#path">Not to fall was too hard, too hard; and he felt the silent lapse of his soul, as it would be at some instant to come, falling, falling, but not yet fallen, still unfallen, but about to fall.
</textPath>
</text>
</svg>
code:script
scrapbox.TimeStamp.addFormat(']YYYY-MM-DD[ HH:mm')
scrapbox.TimeStamp.addFormat('HH:mm') ;
scrapbox.TimeStamp.addFormat('YYYY-MM-DD');
ステータスバーに何も表示しない
code:style.css
.status-bar{
display: none;
}
code:style.css
button#Templates.tool-btn:hover { text-decoration: none }
button#Templates.tool-btn::before { position: absolute; content: '\f067'; font: 900 21px/46px 'Font Awesome 5 Free' }
button#Templates.tool-btn img { opacity: 0 }
code:script.js
addTemplateItemsToPageMenu()
function addTemplateItemsToPageMenu() {
// テンプレートメニューの定義ここから ---------- 下の解説を見てね!! ----------
const __templates = [
{ title: '📄 日報テンプレート', template: '/api/code/issac-37765679/%E6%97%A5%E5%A0%B1%E3%83%86%E3%83%B3%E3%83%97%E3%83%AC%E3%83%BC%E3%83%88/template.js' },
{ title: '📄 週報テンプレート', template: '/api/code/issac-37765679/%E9%80%B1%E5%A0%B1%E3%83%86%E3%83%B3%E3%83%97%E3%83%AC%E3%83%BC%E3%83%88/template.js' },
{ title: '📄 月報テンプレート', template: '/api/code/issac-37765679/%E6%9C%88%E5%A0%B1%E3%83%86%E3%83%B3%E3%83%97%E3%83%AC%E3%83%BC%E3%83%88/template.txt' },
{ title: '📄 test', template: '/api/code/issac-37765679/test/template.js'}
]
// テンプレートメニューの定義ここまで ----------
const __templMenuTitle = 'Templates'
scrapbox.PageMenu.addMenu({ title: __templMenuTitle, image: '/assets/img/logo.png', onClick: () => { } })
__templates.forEach((i) => {
scrapbox.PageMenu(__templMenuTitle).addItem({
title: i.title,
onClick: () => { __loadTemplate(i.template) }})
})
var __loadTemplate = function (templateUrl) {
if (scrapbox.Page.lines && scrapbox.Page.lines.length == 1) {
// タイトル行をクリックしたことにする
const line = document.getElementById('L' + scrapbox.Page.lines0.id) const lastChar = line.querySelector('span.char-index:last-of-type')
const textarea = document.getElementById('text-input')
lastChar.dispatchEvent(new MouseEvent('click', {bubbles: true, cancelable: true}))
textarea.dispatchEvent(new KeyboardEvent('keydown', {bubbles: true, cancelable: true, keyCode: 35}))
// テンプレートを読み込む
$('#text-input').load(templateUrl, function (response, status, xhr) {
if (status == "success") {
try {
// 読み込んだテンプレートをテキストエリアにセットしまして
textarea.value = /\.js$/.test(templateUrl) ? eval(response) : response
// テキストエリアのinputイベントを出しまして
textarea.dispatchEvent(new InputEvent('input', {bubbles: true, cancelable: true}))
} catch (ex) {
console.log("だめでした>< \n" + ex)
}
} else {
console.log("だめでした>< \n" + status)
}
})
}
}
}
code:style
button#Timestamp.tool-btn:hover { text-decoration: none }
button#Timestamp.tool-btn::before { position: absolute; content: '\f017'; font: 900 22px/46px 'Font Awesome 5 Free' }
button#Timestamp.tool-btn img { opacity: 0 }
code:script.js
const TimestampTitle = 'Timestamp'
scrapbox.PageMenu.addMenu({
title: TimestampTitle,
//これでボタンの追加ができた
image: '/assets/img/logo.png',
onClick: text => {
function insertText(text) {
//タイムスタンプを生成する
const now = new Date();
//
const date = now.toLocaleDateString('sv-SE');
const time = now.toLocaleTimeString('en-GB', { hour: '2-digit', minute: '2-digit' });
const formattedTimestamp = [${date}] ${time};
text = formattedTimestamp;
const cursor = document.getElementById("text-input");
cursor.focus();
cursor.value = text
const event = new InputEvent("input", { bubbles: true });
cursor.dispatchEvent(event);
}
}
})
メニューアイコンで動くやつ
code:script
scrapbox.PopupMenu.addButton({
title: 'timestamp',
onClick: text => {
const now = new Date();
const date = now.toLocaleDateString('sv-SE');
const time = now.toLocaleTimeString('en-GB', { hour: '2-digit', minute: '2-digit' });
const formattedTimestamp = [${date}] ${time};
text = formattedTimestamp;
return text;
}
})
code:js
scrapbox.PopupMenu.addButton({
title: 'quote',
onClick: text => text.split(/\n/).map(line => > ${line}).join('\n')
})
ダイナリストから転記するときに使うやつ
code: js
scrapbox.PopupMenu.addButton({
title: 'インデント削除',
onClick: text => {
text = text.split(/\n/).map(line => line.normalize().replace(/\s{4}/g,' ')).join('\n');
return text;
}
})
code:style.css
.guest-project {
display: none;
}
code:script.js
localStorage.projectsLastAccessed = {}
code:style
.editor, .stream, .grid li ,.quick-launch .project-home .title {
font-family: 'ヒラギノ明朝 Pro 6N W3','ヒラギノ明朝 Pro','Noto Sans CJK JP','Noto Sans Japanese',serif;
}
井戸端用cFQ2f7LRuLYP.icon
code:出張用.js
import "/api/code/issac-37765679/ある日…….js/script.js"
import "/api/code/issac-37765679/RandomPlainsWalk.js/script.js"
import "/api/code/issac-37765679/gamble.js/script.js"