Skip to content
This repository has been archived by the owner on Oct 16, 2020. It is now read-only.

Add a way to inject user stylesheet rules #243

Open
jspenguin2017 opened this issue Feb 14, 2019 · 5 comments
Open

Add a way to inject user stylesheet rules #243

jspenguin2017 opened this issue Feb 14, 2019 · 5 comments

Comments

@jspenguin2017
Copy link
Member

I don't want to break the DOM Inspector, but user stylesheet is sometimes required.

See also:
MajkiIT/polish-ads-filter#12101

@hawkeye116477
Copy link

Also GDPR can't be hidden on https://sportowefakty.wp.pl without userCSS, cuz it has inline style with overflow: hidden !important.

@krystian3w

This comment has been minimized.

@jspenguin2017
Copy link
Member Author

jspenguin2017 commented Feb 23, 2019

This issue is non-trivial. I recommend you to create an Userscript to remove the inline styles.

I'll add non-annoyance rules to Nano Defender for now.

@hawkeye116477
Copy link

Ok, I was rather hoping to solve this problem in Nano Adblocker. Anyway currently we have another solution in our special extension, we just search for button with specific text and click on it 😄.

@jspenguin2017
Copy link
Member Author

What I probably will do is to add a new compiler directive (!#nano-use-usercss?), which will force the next rule to become injected via UserCSS.

Things to consider:

  • Extend current system or roll a small secondary system? Not sure for how long will this be needed.
  • How to handle exception rules?
  • How to handle !#if, !#include, and other directives? Need to test to make sure they don't conflict.

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

No branches or pull requests

3 participants