Userstyles ignored for local files, private browsing and speed dial

Bug #875545 reported by Olivier Fabre
24
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Midori Web Browser
Confirmed
Undecided
Unassigned

Bug Description

I am using a dark userstyle to remove all white backgrounds from the web and it usually works fine except in the following cases:

- when a local file is opened (file://)
- on the Speed Dial page that is shown on every new tab
- in the private browsing window

I'm not using this userstyle for cosmetic reasons but because I can't stand bright pages, so this is a problem. It would be great if userstyles applied everywhere.

This is probably also related to bug 794859 "Userstyles are not applied on frames".

Revision history for this message
Cris Dywan (kalikiana) wrote :

In fact discussions that came up in bug 826441 may lead to stylesheet support in local files and special pages such as Speed Dial or about:version.

Private Browsing doesn't currently load any extensions, including user stylesheets. There is no complete design story with regard to a) making sure no data is written to disk and b) a technical decision in terms of using MidoriApp or going a different route.

Revision history for this message
Olivier Fabre (stqn) wrote :

I see that Midori 0.4.2 now applies userstyles to about:blank and local files, that's great!

Private browsing still doesn't apply anything, as explained in comment #1.

Revision history for this message
gue5t gue5t (gue5t) wrote :

The problem is, as explained, that userstyles themselves are implemented via an extension, and at present there's no policy to prevent extensions from leaking private-browsing sessions' data to disk. Unless/until that changes, it's unlikely that extensions will become available in private-browsing mode.

A workaround for the present is to use the user-stylesheet-uri setting in the config file; it's a uri that points to a file to be loaded as CSS for all pages, like a global userstyle that doesn't require the extension. For example, add the line "user-stylesheet-uri=file:///home/youruser/midori.css" to ~/.config/midori/config if your css is in ~/midori.css.

Cris Dywan (kalikiana)
tags: added: privatebrowsing
Changed in midori:
status: New → Confirmed
Revision history for this message
Liviu Andronic (landronimirc) wrote :

I believe I spotted a similar usage issue: Userstyles are ignored when you disable JavaScript. Since I almost always disable JS because of Bug #979688 , I am unable to apply a dark userstyle. Is this expected? Or should I report it as an independent bug?

Revision history for this message
James (jamestheawesomedude) wrote :

It would be really nice to have some way to load userstyles/userscripts in App Mode. It would be good to be able to add little tweaks to websites to make them behave better as webapps.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.