Mozilla 도움말 검색

고객 지원 사기를 피하세요. 저희는 여러분께 절대로 전화를 걸거나 문자를 보내거나 개인 정보를 공유하도록 요청하지 않습니다. "악용 사례 신고"옵션을 사용하여 의심스러운 활동을 신고해 주세요.

자세히 살펴보기

Bug report: Firefox Reader TTS (Narrate): Stops at each line break ('\n')

  • 1 답장
  • 1 이 문제를 만남
  • 1 보기
  • 최종 답변자: ssmid

more options

First of all: I could not find any article on how to file a bug report, so I opened up this question.

The built-in TTS function "Narrate" stops reading for a second, whenever a line break ('\n') occurs. Unfortunately, in my case (https://paroj.github.io/gltut/About%20this%20Book.html), there are lots of line breaks in the middle of the text, making using Narrate impossible.

(You can find the TTS function if you open up the Reader in the URL bar, in case you want to reproduce this.)

Is there anything I can do to fix this? (besides trying to do a browser extension)

Thanks

First of all: I could not find any article on how to file a bug report, so I opened up this question. The built-in TTS function "Narrate" stops reading for a second, whenever a line break ('\n') occurs. Unfortunately, in my case (https://paroj.github.io/gltut/About%20this%20Book.html), there are lots of line breaks in the middle of the text, making using Narrate impossible. (You can find the TTS function if you open up the Reader in the URL bar, in case you want to reproduce this.) Is there anything I can do to fix this? (besides trying to do a browser extension) Thanks

모든 댓글 (1)

more options

Using my advanced web search skills, I managed to write this probably horrible JS code:

Javascript function ttsWorkaround() {

 var paragraphs = document.getElementsByTagName('p');
 for (let p of paragraphs) {
   p.innerHTML = p.innerHTML.replace(/\n */g, ' ');
 }

}

ttsWorkaround();

To apply this to every book/web page without using the console, one probably has to write an extension. And one might want to change the name of the tag ('p') to whatever tag fits the specific page. (Maybe even 'body'.)