Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add stylesheets to filtering #3434

Closed
marak8 opened this issue Jan 13, 2018 · 8 comments
Closed

Add stylesheets to filtering #3434

marak8 opened this issue Jan 13, 2018 · 8 comments
Labels

Comments

@marak8
Copy link

marak8 commented Jan 13, 2018

I'm using UBO in hard mode. I block all globally but allow images globally. For sites I trust (GitHub), I set noop in all locally. This is easy and non-intrusive. But I'd still like to load external stylesheets alongside images on sites I do not trust. UBO in Advanced Mode should allow user to load both images and stylesheets as they are not that harmful (you can just include stylesheet inline and circumvent the block logic). uMatrix is too complex for my needs.

It doesn't have to be in the filtering GUI. Since I only need to specify it for all sites, I can just write it in rules. But according to [1], I cannot explicitly allow external stylesheets. Without CSS, most stites look bad. For instance https://publicsuffix.org/ .

[1] https://github.com/gorhill/uBlock/wiki/Dynamic-filtering:-rule-syntax

@gorhill
Copy link
Owner

gorhill commented Jan 13, 2018

Hard mode is to block all 3rd parties. That would be wrong to allow 3rd-party images/stylesheets when a rule to block all 3rd parties is in effect. Just use medium mode.

@gorhill gorhill closed this as completed Jan 13, 2018
@marak8
Copy link
Author

marak8 commented Jan 13, 2018

Well, I want to block all JS regardless of the party. But I want to be able to load CSS and images from 1st party. How am I supposed to do that?

@gorhill
Copy link
Owner

gorhill commented Jan 13, 2018

Don't use hard mode, just block inline, 1st- and 3rd-party javascript.

@uBlock-user
Copy link
Contributor

Well, I want to block all JS regardless of the party. But I want to be able to load CSS and images from 1st party.

Your desire for that specific behavior reminds me of uMatrix. It's perfect for you.

@marak8
Copy link
Author

marak8 commented Jan 13, 2018

uBlock is nice, uncluttered, easy. For my desire I added NoScript. This way uBlock handles filters and NoScript my desire to block all JS by default.

@gorhill
Copy link
Owner

gorhill commented Jan 14, 2018

@marak8 Ok so what you really want is #3436.

@marak8
Copy link
Author

marak8 commented Jan 15, 2018

Well, depends. It really seems inconsistent a bit that you're allowed to block images but stylesheets fall into all category. When you block images, does uBlock also block images in stylesheets (background)? Though I agree that #3436 is what I wanted.

@gorhill
Copy link
Owner

gorhill commented Jan 15, 2018

you're allowed to block images

Rationale was to save bandwidth. I actually would like to remove the images row since I added the ability to block images blocked by size.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants