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

Add a way to inject user stylesheet rules #243

Open

Description

@jspenguin2017

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

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

Activity

  1. hawkeye116477 commented on Feb 23, 2019

    @hawkeye116477

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

  2. krystian3w commented on Feb 23, 2019

    @krystian3w
  3. jspenguin2017 commented on Feb 23, 2019

    @jspenguin2017
    MemberAuthor

    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.

  4. hawkeye116477 commented on Feb 23, 2019

    @hawkeye116477

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

  5. jspenguin2017 commented on Jun 7, 2019

    @jspenguin2017
    MemberAuthor

    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 join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions