script
tag. To do this, you need to add the script to the web_accessible_resources in the manifest , and then just add it to the document. <?xml version="1.0" encoding="utf-8" ?> <timedtext format="3"> <head> <pen id="1" fc="#E5E5E5"/> <pen id="2" fc="#CCCCCC"/> <ws id="1" mh="2" ju="0" sd="3"/> <wp id="1" ap="6" ah="20" av="95" rc="2" cc="32"/> </head> <body> <wt="0" id="1" wp="1" ws="1"/> <pt="21119" d="2580" w="1"><s ac="254">some</s><st="570" ac="255"> text</s></p> <pt="21689" d="2010" w="1" a="1"></p> </body> </timedtext>
s
tags inside the p
tags (apparently from predlozhenie) (apparently from slovo). I decided this by bluntly cutting out the s
tag, especially since the time stamp refers to p
entirely. Led to a single mind, cool.p
contains the given symbol, which automatically gives us a time stamp. The search itself looks a bit strange. This is due to the fact that there may be several occurrences, as well as the fact that one search query may overlap several time intervals . Got an array of entries, cool.Source: https://habr.com/ru/post/321022/
All Articles