Skip to content

Commit

Permalink
Fixed, Using TTS on Wikivoyage 2023-06 (Android 13) reads code aloud.
Browse files Browse the repository at this point in the history
  • Loading branch information
MohitMaliDeveloper committed Nov 17, 2023
1 parent 252d846 commit 2dab03c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ class KiwixTextToSpeech internal constructor(
"""
javascript:
body = document.getElementsByTagName('body')[0].cloneNode(true);
toRemove = body.querySelectorAll('sup.reference, #toc, .thumbcaption, title, .navbox');
toRemove = body.querySelectorAll('sup.reference, #toc, .thumbcaption, title, .navbox, style');
Array.prototype.forEach.call(toRemove, function(elem) {
elem.parentElement.removeChild(elem);});
tts.speakAloud(body.innerText);
Expand Down

0 comments on commit 2dab03c

Please sign in to comment.