• 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

    Set default body background

    Opera for Mac
    3
    7
    1281
    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 set a default body background colour for pages without forcing the background to change if it is already set?

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

        Stylish?

        "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

          The generated stylesheet from a script that I have in Violentmonkey acts like an external stylesheet. Would not a stylesheet from Stylish also act like an external stylesheet?

          Reply Quote 0
            1 Reply Last reply
          • sgunhouse
            sgunhouse Moderator Volunteer last edited by

            When does your stylesheet load? I don't really know CSS, but I recall that Opera 12's userCSS required writing "!important" to override site styles as the stylesheet loaded last (the one from the website) normally takes precedence. If your stylesheet loads first but does not use "!important" then it functions like a default.

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

              The problem is that the stylesheet generated by a script within Violentmonkey does not need "!important" to override, and external stylesheets that load along with web pages do not need that either. Content stylesheets work differently. To set a default with one of those, you omit "!important", whereas to override, you include it. Presto Opera did make provision for a content stylesheet, but WebKit Opera does not seem to have any provision at all for one.

              Would Stylish be any different?

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

                Would Stylish be any different?

                Just test it.

                You can create another profile for testing purposes if you need.

                "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 hardly think that installing another extension just to change one parameter is worthwhile. If the body background is set, a script I have in Violentmonkey will make it darker if it is light. If no background is set, that script does nothing. I have a bookmarklet that can change the body background. I guess I should just settle for 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-