• 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

    CSS injection in Opera for Mac

    Opera for Mac
    3
    5
    933
    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.
    • lourou
      lourou last edited by

      Hi,

      I am experiencing malicious CSS injection in Opera for macOS.
      I am running the latest version 66.0.3515.103 on macOS 10.14.6.

      Below, you can see that CSS is injected as the last <head> child tag attribute.
      This is the same on every website that I visit.

      • I reset the browser, uninstalled all extensions. The injection still takes place.

      • It is only see on Opera, not on Opera Developer which I also have installed on my computer.
        Chrome, Firefox are exempt of this injection.

      Do you have an idea where from this malicious code is injected from?

      What should I do?

      Thanks,
      L.

      e5aa6e2b-6258-46b3-aaa2-d90cfc934950-image.png

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

        @lourou It seems tyo be the ad-blocker. There was a topic about it a while ago.

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

          I did search in the forum archive but could not find anything related to CSS injection. To me, this looks like malicious CSS, as you can see many scam website URLs are listed.

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

            Found it: https://forums.opera.com/topic/25957/am-i-infected-by-a-malware.

            It's very weird and I feel not safe having this scam websites added as CSS injection in my pages source code. I see porn website URLs everytime I do some debugging, or I have to display ads... of course I can deactivate the ad blocker on sites I am developing on, but still a very strange dilemma.

            Thanks for your help @leocg

            Reply Quote 0
              opra20mk 1 Reply Last reply
            • opra20mk
              opra20mk @lourou last edited by

              @lourou
              This is not malware, but CSS rules of the internal adblocker preventing display of porn ads etc. Basic structure of rules is

              :root  a[href^="https://adclick.g.doubleclick.net/"] { 
                display: none !important; 
              }
              

              which only searches for evil URLs to make bad links invisible.

              Reply Quote 0
                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-2025