byteyilabs / yi-note

YiNote browser extension - online video note taking tool
https://www.yinote.co
GNU General Public License v3.0
356 stars 50 forks source link

Stuck on "Support YiNote in your website," #77

Open yuis-ice opened 3 years ago

yuis-ice commented 3 years ago

I'm trying to do "Support YiNote in your website" as the README.md. On the website I wanted to enable yi-note, I firstly edited the video html tag and added data-yinote="yinote-hook-player" attribute from chrome developer console. But I cannot get it well about "Add message listener to watch on video action messages from YiNote" window.addEventListener('message', event =>... JavaScript code, Isn't that means I can simply copy and paste the JS code to the console and will be worked well? I pasted and ran the code onto dev console and I got an error Uncaught SyntaxError: Unexpected token '*'. So would you tell me how can I add the step 2 JS code? Or Is there more detailed how-to?

Just in case here is the website and an exact URL with video html tag I tried.

https://gogoanime.vc https://gogoanime.vc/comic-girls-episode-4

Thanks.