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

Override CSS style #430

Closed
wernight opened this issue Jul 2, 2015 · 7 comments
Closed

Override CSS style #430

wernight opened this issue Jul 2, 2015 · 7 comments

Comments

@wernight
Copy link

wernight commented Jul 2, 2015

Sites that have a sidebar for ads, sometimes it's not enough to just set display: none on the sidebar to get back the space taken by it. For example it may have body { padding-right: 300px; }. Of course another extension could handle styling for a given website, but it should really go hand in hand with the blocking of ads (enabled and disabled together).

Is there a way to write custom CSS that should be injected for given websites?

@SW1FT
Copy link
Contributor

SW1FT commented Jul 2, 2015

Stylish?

@gorhill
Copy link
Owner

gorhill commented Jul 2, 2015

Is there a way to write custom CSS that should be injected for given websites?

Not with uBlock. What you ask is really best accomplished with Stylish.

@gorhill gorhill closed this as completed Jul 2, 2015
@anewuser
Copy link
Contributor

anewuser commented Jul 2, 2015

You don't need to use any extension to do that on Firefox: http://superuser.com/a/319322/33758

@wernight
Copy link
Author

wernight commented Jul 2, 2015

I do know about other extensions, but it should be part of the ad-block as it's not to re-style the page, but really just to hide ads. Enabling back ads for example, should not apply those styles.

Why not have it part of uBlock?

@SW1FT
Copy link
Contributor

SW1FT commented Jul 2, 2015

You can enable ads back, if you know what you're doing, by disabling certain filters (cosmetic and/or network based).

@wernight
Copy link
Author

wernight commented Jul 2, 2015

My point is that users may want to enable/disable ads and uBlock should completely hide them when it can, not just leave a blank rectangle. In some cases this would be possible only by having some CSS filter or CSS override (when uBlock is enabled for that particular site).

@SW1FT
Copy link
Contributor

SW1FT commented Jul 2, 2015

You would have to make that yourself as it would be difficult to go through every single website with ads and do that. Thats why you should either use Stylish or userContent.css. Integrating Stylish or something similar to uBlock would make it heavier and not many people would want that to be honest.

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

No branches or pull requests

4 participants