yamanoku
https://gyazo.com/809a6f523937838d9ba5eaf20717feee
https://gyazo.com/88e99c243cb80d34756d965c99df767d
https://gyazo.com/6c4044831f4e09b29e43477f0dfb5e48
https://gyazo.com/c6448ef4958591138994a4b420590561
https://gyazo.com/9cfe28c196d2acc009d61935919d2a50
https://gyazo.com/259334d2ddd31bd92d20f7df5dd8fbb2
https://gyazo.com/77a3e0d33a1026e6224f9b0cd0aa2380
https://gyazo.com/bb3e2a8a4c2aba6cd0c7e452d410b65e
https://gyazo.com/df088dd52fd279a8a9fbeef25eb4c88f
https://gyazo.com/1d90fc2a3605b7a501d3eea36e0d8965
https://gyazo.com/f4d71ebd667b5fd71a043edd8dd05ddf
code:script.js
// ScreenReader Function
scrapbox.PopupMenu.addButton({
title: 'speech',
onClick: text => {
if(! window.speechSynthesis) return text;
let ssu = new SpeechSynthesisUtterance()
ssu.text = text;
ssu.lang = 'ja-JP';
speechSynthesis.speak(ssu);
}
})
code:script.js
// EN => JA Translate Function
scrapbox.PopupMenu.addButton({
title: 'EN_translate',
onClick: text => window.open(https://translate.google.com/#en/ja/${text})
})
code:script.js
// Add MenuItem Twitter Share Button
scrapbox.PageMenu.addItem({
title: 'tweet',
onClick: () => window.open(https://twitter.com/intent/tweet?url=${encodeURIComponent(location.href)}&text=${encodeURIComponent(window.scrapbox.Page.title)})
})
code:script.js
import '/api/code/shokai/音声入力Menu/script.js'