Skip to content
TheChatArchiveThe Chat Archive
Human-written demonstration (OpenAssistant volunteers)· OpenAssistant (human-written)Hugging Face OpenAssistant Conversations (oasst2)

I had a idea for a Chrome-Extension that would translate the contents of a Webpage 100…

In OpenAssistant data, “assistant” turns were written by human volunteers as demonstrations. They are not model outputs.
  1. User

    I had a idea for a Chrome-Extension that would translate the contents of a Webpage 100 times (variable by a slider) and finally translate it back to the original Language for some funny outcomes (like with the "Bad Translator" google docs addon but instead of having to manually paste text there i could just translate the whole webpage and make it look funny) but the problem is, that I would need a expensive api key. I, however, noticed that when you "google" google translate, then you can translate for free, so my idea would be to just feed the websites text into that thing the ammount of times that were specified. How would i do that automatically?

  2. Assistant

    If you're planning to publish the extension, it's best not to abuse Google's services like that, as it's very likely that they'll take it down from their store. You should instead use a cheaper alternative, such as LibreTranslate hosted on a cheap Hetzner server. (LibreTranslate isn't as good at translation as Google's services, which in your case should be a positive!) However, if you don't plan on sharing the extension publicly and don't mind potentially being ratelimited, a good place to start is to look at your browser's network monitor (available in the "Inspect Element" panel) while using the translator. You could also study the code of open-source alternative frontends, such as Lingva Translate.

  3. User

    Since im not planning on publishing the extension because of what you mentioned above, I would still like to do it that way since it just basically automates a translation of a Website in a funny way which is a service Google already offers, just the boring way ;)

  4. Assistant

    I would strongly recommend not abusing Google services and remaining within their terms of use.

    However, if you really wish to do this and understand the potential risks, you could look into automating the process of using the Translate feature of Google by utilizing a headless browser. Headless browsers are browsers that don't open a GUI window but instead perform tasks in the background. It's possible to control them with a programming language such as JavaScript or Python. This would allow you to feed the website text into the translator the amount of times specified and then translate it back in the original language.

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.