This is a simple userscript that allows you to receive text from a websocket and send it to the current Discord channel. This is useful for group reading VNs or watching anime with friends where everyone can look up the words in real time by using Yomitan through a browser.
- Get textractor_websocket for VNs or mpv_websocket for anime and set it up.
- Install Violentmonkey for your browser.
- Install the script by clicking here.
- Get your Discord token by following this guide.
- Go to the Discord channel where you want to send the text in your browser.
- Use the script through the userscript manager's popup menu as shown below.
Warning
This interacts with the Discord API and could be considered as usage of a third party client/selfbotting. Use an alt account if this concerns you.
- There is a ratelimit built in to lessen the likelihood of hitting the Discord message ratelimit. Because of this, you may notice a delay between the text being sent to the websocket and it appearing in Discord.
- Due to the content security policy, there is no way to use a websocket that is
not on
127.0.0.1
. - The recommended websocket extensions use the port
6677
by default, but if your websocket is on a different port, you can change it through the menu.