• Login
    • Search
    • Categories
    • Recent
    • Tags
    • Users
    • Groups
    • Rules
    • Help

    Do more on the web, with a fast and secure browser!

    Download Opera browser with:

    • built-in ad blocker
    • battery saver
    • free VPN
    Download Opera

    Google™ Translator

    Opera add-ons
    extension comments
    26
    44
    18749
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • burnout426
      burnout426 Volunteer last edited by

      When navigating to a pdf file, the pdf is embedded into the document with an "embed" element. You can hit ctrl + shift + I and look on the Elements tab to see this.

      In the extension, in \data\content_script\inject.js, on line 208, when mainDIV.appendChild(iFrame); is executed, (where an iframe is appended to the div that was inserted earlier in the document), the content of the embedded document gets scribbled on by the extension. If you look at the Elements tab in the developer tools, you'll see that the embed element now has a whole document as a child node. That shouldn't be there. It must be replacing the original pdf content.

      Same thing happens in Chrome.

      Still need to investigate more.

      A simple workaround might be to just avoid the appendChild call if document.location.href contains ".pdf" or something like that. But, figuring out why appending an iframe to the document clobbers the embed's document (maybe Chromium bug/change) would be better.

      Reply Quote 0
        1 Reply Last reply
      • burnout426
        burnout426 Volunteer last edited by

        Here's a minimal test extension that I believe represents the issue when trying to view a PDF. In short, adding an iframe to the document (the document that embeds the pdf with an EMBED element when you navigate to a PDF file) via an extension, clobbers the embedded document loaded by the EMBED element.

        Reply Quote 0
          1 Reply Last reply
        • burnout426
          burnout426 Volunteer last edited by

          Goto the URL chrome://flags/#mime-handler-view-in-cross-process-frame and disable it. If that works, you can use that as a workaround for now.

          Reply Quote 1
            1 Reply Last reply
          • burnout426
            burnout426 Volunteer last edited by

            Filed a Chromium bug at https://bugs.chromium.org/p/chromium/issues/detail?id=1046795.

            Reply Quote 1
              burnout426 1 Reply Last reply
            • burnout426
              burnout426 Volunteer @burnout426 last edited by

              @burnout426 said in Google™ Translator:

              Filed a Chromium bug at https://bugs.chromium.org/p/chromium/issues/detail?id=1046795.

              The fix for this is in Chromium 82.0.4045.0. It might be a while before the fix reaches stable though. Until then, use can still disable this flag.

              Reply Quote 1
                burnout426 1 Reply Last reply
              • burnout426
                burnout426 Volunteer @burnout426 last edited by

                @burnout426 said in Google™ Translator:

                @burnout426 said in Google™ Translator:

                Filed a Chromium bug at https://bugs.chromium.org/p/chromium/issues/detail?id=1046795.

                The fix for this is in Chromium 82.0.4045.0. It might be a while before the fix reaches stable though. Until then, use can still disable this flag.

                Or, you can try this modified version of the extension that tries to work around the issue for now. See the readme.txt in it for details of the fix. Download the zip file, extract it, goto the URL opera://extensions in Opera, turn on developer mode, click "load unpacked" and point it to the extracted folder (where manifest.json is at).

                Reply Quote 1
                  1 Reply Last reply
                • burnout426
                  burnout426 Volunteer last edited by

                  This is fixed in Opera Stable and Opera Developer now.

                  https://blogs.opera.com/desktop/2020/02/opera-66-0-3515-72-stable-update/

                  https://blogs.opera.com/desktop/2020/02/opera-68-0-3590-0-developer-update/

                  Reply Quote 1
                    1 Reply Last reply
                  • burnout426
                    burnout426 Volunteer last edited by

                    Fixed in Beta now too.

                    https://blogs.opera.com/desktop/2020/02/opera-67-0-3575-13-beta-update/.

                    Reply Quote 0
                      1 Reply Last reply
                    • haritweety
                      haritweety last edited by

                      Pretty Good Extension >_<

                      Reply Quote 0
                        1 Reply Last reply
                      • papayak
                        papayak last edited by

                        Перестало работать

                        Reply Quote 0
                          1 Reply Last reply
                        • pedrowolfp2
                          pedrowolfp2 last edited by

                          Why doesn't it work on google searches? This Sucks! I've been using this for a long time, but it's frustrating that it doesn't work on any site by google not just google searches.

                          Reply Quote 0
                            leocg 1 Reply Last reply
                          • leocg
                            leocg Moderator Volunteer @pedrowolfp2 last edited by

                            @pedrowolfp2 Because you didn't enabled it to work in search engines?

                            Reply Quote 0
                              pedrowolfp2 2 Replies Last reply
                            • pedrowolfp2
                              pedrowolfp2 @leocg last edited by

                              @leocg Is there such feature? Why isn't it enabled by default?

                              Reply Quote 0
                                leocg 1 Reply Last reply
                              • leocg
                                leocg Moderator Volunteer @pedrowolfp2 last edited by

                                @pedrowolfp2 Yes, you need to go to the extension settings and enable it for search engines.

                                Reply Quote 0
                                  pedrowolfp2 1 Reply Last reply
                                • pedrowolfp2
                                  pedrowolfp2 @leocg last edited by

                                  @leocg I don't see this setting, how can I enable it in search engines?

                                  Reply Quote 0
                                    1 Reply Last reply
                                  • pedrowolfp2
                                    pedrowolfp2 @leocg last edited by pedrowolfp2

                                    @leocg Oh, now I see it. Has nothing to do with the extension, Sorry, and thank you.

                                    Reply Quote 0
                                      1 Reply Last reply
                                    • Jean-Phi
                                      Jean-Phi last edited by

                                      I used your addon for a while, but I removed it because too deasapointed with translation

                                      Reply Quote 0
                                        1 Reply Last reply
                                      • A Former User
                                        A Former User last edited by

                                        Selected text, clicked bubble.
                                        popup - "Addon needs to update some data from 'translate.google.com', please try again after few seconds." Then it opens a new tab to google tranlsate with nothing in it.
                                        I expected the translation to be in the pop-up.
                                        Happens again and again

                                        Reply Quote 0
                                          1 Reply Last reply
                                        • alexmercer97
                                          alexmercer97 last edited by

                                          it was working perfectly, but for two days it just says "addon is updating some data from google translate", opens up translate.google.com and does nothing.

                                          i'm using this addon for years and remember seeing this update prompts before. this is different from normal update process, it constantly does the same thing

                                          i tried removing and installing again but it didnt work.

                                          Reply Quote 0
                                            1 Reply Last reply
                                          • beaubeaukitty
                                            beaubeaukitty last edited by

                                            how do i download these add ons? i see them though its not apparent to me how to fetch them?

                                            Reply Quote 0
                                              alexmercer97 1 Reply Last reply
                                            • First post
                                              Last post

                                            Computer browsers

                                            • Opera for Windows
                                            • Opera for Mac
                                            • Opera for Linux
                                            • Opera beta version
                                            • Opera USB

                                            Mobile browsers

                                            • Opera for Android
                                            • Opera Mini
                                            • Opera Touch
                                            • Opera for basic phones

                                            • Add-ons
                                            • Opera account
                                            • Wallpapers
                                            • Opera Ads

                                            • Help & support
                                            • Opera blogs
                                            • Opera forums
                                            • Dev.Opera

                                            • Security
                                            • Privacy
                                            • Cookies Policy
                                            • EULA
                                            • Terms of Service

                                            • About Opera
                                            • Press info
                                            • Jobs
                                            • Investors
                                            • Become a partner
                                            • Contact us

                                            Follow Opera

                                            • Opera - Facebook
                                            • Opera - Twitter
                                            • Opera - YouTube
                                            • Opera - LinkedIn
                                            • Opera - Instagram

                                            © Opera Software 1995-