generated at
hiyu hajime
name :ひゆうはじめ
Twitter:@Ryonaguro

はじめましての方はこんにちは。
「ひゆうはじめ」と申すものです。
ここには、「ふとした思いつき」とか「ちょっとした小咄」とか。
とにかく私が「広く流布したいなぁ〜」と思った内容を連ねています。


script.js
scrapbox.TimeStamp.addFormat(()=>{ var now = new Date(); var year = String(now.getFullYear()) + '年'; var month = ('0' + String(now.getMonth() + 1) + '月').slice( -3 ); var day = ('0' + String(now.getDate()) + '日').slice( -3 ); var hour = ('0' + String(now.getHours()) + ':').slice( -3 ); var minute = ('0' + String(now.getMinutes())).slice( -2 ); var tweet = "ひゆうはじめさんのScrapboxの記事を共有しました。" const encodeText = "https://twitter.com/intent/tweet?text=" + encodeURI(tweet) + "%0D%0A" + encodeURI(location.href); const text = "[******* [https://gyazo.com/4031bb41108a1756d5556efc02346660]]記述日:" + year + month + day + hour + minute + '[* [https://gyazo.com/0902b55512d817b36596c44228e2d840 ' + encodeText +']]'; if (encodeURI(location.href) == "https://scrapbox.io/hiyu-hajime/%25E8%25A6%2596%25E7%25A5%259E%25E7%25B5%258C%25E5%2589%258D"){ return "記述日:" + year + month + day + hour + minute; }else if(encodeURI(location.href) == "https://scrapbox.io/hiyu-hajime/%25E7%25A7%2581%25E8%2587%25B3%25E5%2590%258D%25E8%25BF%25B7%25E3%2581%25AE%25E8%25A8%2580"){ return "――" + year + month + day + hour + minute; }else{ return text; } }); scrapbox.PopupMenu.addButton({ title: 'Twitterにシェア', onClick: text => { //encodeURIComponent(text) var today = new Date(); var days = today.getFullYear() + "年" + today.getMonth() + "月" + today.getDate() + "日" + today.getHours() + ":" + today.getMinutes() const encodeText = days + "%0D%0A" + encodeURI("ひゆうはじめ が新しい記事をscrapboxに上げました!!") + "%0D%0A" + encodeURI(location.href); const url = "https://twitter.com/intent/tweet?text=" + encodeText; window.open(url, "_blank"); } })