cschiller / zhongwen

Official source code of the "Zhongwen" Chrome extension
https://chrome.google.com/webstore/detail/zhongwen-chinese-english/kkmlkkjojmombglmlpbpapmhcaljjkde
GNU General Public License v2.0
312 stars 52 forks source link

[feature request] Can you please make it work with Amazon Prime subtitles? #94

Open deedeedev opened 1 year ago

deedeedev commented 1 year ago

I'm already using your awesome extension with other web-based video players, for example the Little Fox Chinese one. On the Amazon Prime player however it doesn't work. I think the only problem is that on the Prime player the chinese text is inside a <span> element and not a <div> one. For example this is a single subtitle html:

<span class="atvwebplayersdk-captions-text f7j034j" style="background-color: rgba(0, 0, 0, 0.5); color: rgb(255, 255, 255); font-size: 2.66667vw;">
当然也有人认为他疯狂固执
</span>

Would it be hard to add support for the Prime player?