• 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

    Page content stylesheet

    Opera for Mac
    2
    4
    909
    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.
    • A Former User
      A Former User last edited by

      Is there any way to use a content stylesheet to change colours on a web page with Opera 43? Even Safari has a provision for that, but I cannot find any way to do that with this version of Opera. Am I stuck with having to use bookmarklets all the time?

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

        I found a Violent Monkey script that would embed a stylesheet. That works, but brings up something that puzzles me. With normal stylesheets, adding !important after a setting overrides something on the page, whereas not adding !important just sets a default without overriding. That did not seem to be the case with a stylesheet embedded into a script. I set:

        body {background: #DCFFDC;}

        I intended that to be a default, but it overrode the body colour of web pages anyway. How does that happen? Is it because the new stylesheet gets embedded? But it cannot be embedded, because I do not see it in the page source code.

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

          Should appears as a script name info.

          "You cannot know the meaning of your life until you are connected to the power that created you". · Shri Mataji Nirmala Devi

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

            I am thinking that the script-generated stylesheet is the last stylesheet loaded, and that is why it overrides. I am stuck with using a bookmarklet to override the body background if I really need to do that.

            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-