scripts
code:script.js
"use strict";(()=>{var o=e=>https://raw.githubusercontent.com/tailwindlabs/heroicons/master/src/24/outline/${e}.svg;function g(e){let t=scrapbox.Project.name;return e=e.replaceAll(/\[([^\/\\\s]+)]/g,[/${t}/$1]),e=e.replaceAll(/#(.+)/g,#[/${t}/$1]),e}function r(){"smdr","sizumita".includes(scrapbox.Project.name)||scrapbox.PageMenu.addMenu({title:"export",image:o("rocket-launch"),onClick:()=>{if(scrapbox.Layout!=="page")return;let e=scrapbox.Project.name,t=encodeURIComponent(scrapbox.Page.title),l=scrapbox.Page.lines.slice(1).map(d=>g(d.text)).join(` ),m=${encodeURIComponent(`#\u{1F680}
from: )}[/${e}/${t}]+encodeURIComponent(`
${l}),u=https://scrapbox.io/smdr/\u{1F680}${t}?body=${m};window.open(u)}})}function n(){["smdr","sizumita"].includes(scrapbox.Project.name)&&scrapbox.PageMenu.addMenu({title:"go diary",image:o("pencil-square"),onClick:()=>{let e=new Date,t=${e.getFullYear()}-${(e.getMonth()+1).toString().padStart(2,"0")}-${e.getDate().toString().padStart(2,"0")};window.location.href=/smdr/${t}}})}function c(){document.querySelector(".change-button")?.remove();let e=document.createElement("a");e.className="change-button";let t=document.createElement("img");t.className="inner",scrapbox.Project.name==="smdr"?(t.src=o("eye"),e.href="/sizumita"):(t.src=o("eye-slash"),e.href="/smdr"),e.appendChild(t),document.querySelector(".navbar-form")?.appendChild(e)}function a(){["smdr","sizumita"].includes(scrapbox.Project.name)&&scrapbox.PopupMenu.addButton({title:"\u30DE\u30FC\u30AB\u30FC",onClick:e=>${e}})}function s(){["smdr","sizumita"].includes(scrapbox.Project.name)&&scrapbox.PopupMenu.addButton({title:"\u6CE2\u7DDA",onClick:e=>${e}`})}var p=()=>{r(),n(),c(),a(),s()};p();var i=scrapbox.Project.name;scrapbox.on("project:changed",()=>{scrapbox.Project.name!==i&&(i=scrapbox.Project.name,p())});})(); code:ext.css
/*
*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}html{-webkit-text-size-adjust:100%;font-feature-settings:normal;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where(title){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}type=button,type=reset,type=submit,button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}type=search{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}role=button,button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}hidden{display:none}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.absolute{position:absolute}.top-0{top:0}.z-50{z-index:50}.block{display:block}.inline-block{display:inline-block}.hidden{display:none}.w-\18rem\{width:18rem}.space-x-4>:not(hidden)~:not(hidden){--tw-space-x-reverse:0;margin-left:calc(1rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(1rem*var(--tw-space-x-reverse))}.rounded-xl{border-radius:.75rem}.border-2{border-width:2px}.border-orange-500{--tw-border-opacity:1;border-color:rgb(249 115 22/var(--tw-border-opacity))}.border-opacity-80{--tw-border-opacity:0.8}.\!bg-white{--tw-bg-opacity:1!important;background-color:rgb(255 255 255/var(--tw-bg-opacity))!important}.bg-orange-500{--tw-bg-opacity:1;background-color:rgb(249 115 22/var(--tw-bg-opacity))}.p-3{padding:.75rem}.text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}@media (min-width:768px){.md\:w-\32rem\{width:32rem}.md\:py-4{padding-bottom:1rem;padding-top:1rem}}.tool-btn:has(>.extension-btn){--tw-bg-opacity:1!important;background-color:rgb(253 186 116/var(--tw-bg-opacity))!important;border-radius:9999px;font-weight:700!important}.page-popup-container{position:relative;z-index:10}div.popup-inner .description{background-image:none!important}div.popup-inner .description .line{background-image:none!important;font-size:1.5rem;line-height:2rem;margin:0}div.popup-inner br{display:none}