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

  • 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?

  • 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.

  • Should appears as a script name info.

  • 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.

Log in to reply
 

Looks like your connection to Opera forums was lost, please wait while we try to reconnect.