script.jsfunction say(e){let n=new SpeechSynthesisUtterance;n.text=e,n.lang="ja-JP",speechSynthesis.speak(n)}function diff(e,n){let s="";return n.split("").forEach(function(n,t){n!=e[t]&&(s+=n)}),s}let lines=scrapbox.Page.lines.map(e=>e.text),beforeline="";function checkLines(){shut(),scrapbox.Page.lines.map(e=>e.text).forEach(e=>{lines.includes(e)||e.startsWith("http")||(say(e!=beforeline?diff(beforeline,e):e),beforeline=e,lines=scrapbox.Page.lines.map(e=>e.text))})}function shut(){speechSynthesis.cancel()}scrapbox.on("lines:changed",checkLines),scrapbox.on("page:changed",shut),scrapbox.on("layout:changed",shut);