Forums are closed as read-only due to our ongoing migration to the new forums page.
Discussion thread

Page content stylesheet

concretable
concretable

264 posts

    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?

    3 Replies - 65 Views

    concretable
    0 0
    concretable

    264 posts

      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.

      zalex108
      0 0
      zalex108

      1404 posts

      • Server monkey
      • 1000 posts

      Should appears as a script name info.

      concretable
      0 0
      concretable

      264 posts

        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.