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.
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 errorUncaught 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.