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

How to add a rule a.k.a on the useability of the GUI? #731

Closed
liar666 opened this issue Sep 22, 2015 · 10 comments
Closed

How to add a rule a.k.a on the useability of the GUI? #731

liar666 opened this issue Sep 22, 2015 · 10 comments
Labels

Comments

@liar666
Copy link

liar666 commented Sep 22, 2015

The interface is very poorly designed: it took me hours to find were to enter a filter rules: clicking on the icon on the toolbar button gives you a menu with only 2 icons: one that leads you to a "picker GUI" the other to a "logger view", none of them allow to simply enter a filter rule, which is supposed to be the core principle of the addon!

  • the "picker view" lets you pick an element on the page, and pops up a "window" (that you cannot see if not pointing the mouse at it!) where the "create" button become grayed-out as soon as you try to customize the rule, with no apparent reason nor any explanation.
  • the "logger view" does not allow you to enter rules...
    • There is absolutely no documentation (in the mozilla addon page of the github page) that explains how to use the addon, nor any blog/forum/... that would talk about it.
    • If you manage to find how to enter a rule (by going to FF menu -> Addons -> uBlock -> Show Dashbord!), then you realize than the syntax is the one of adblock and has nothing to do with RegExes! The availability of the wildcard * has nothing to do with the possibility to use true RegExes like '.*' or '[a-z]' or '[0-9]{4}'!!!!
@gorhill
Copy link
Owner

gorhill commented Sep 22, 2015

then you realize than the syntax is the one of adblock and has nothing to do with RegExes

I have no clue what you are talking about. uBlock supports Adblock Plus filter syntax, it's written black-on-white in the My filters pane at the top:

One filter per line. A filter can be a plain hostname, or an Adblock Plus-compatible filter. Lines prefixed with ‘!’ will be ignored.

@gorhill
Copy link
Owner

gorhill commented Sep 22, 2015

where the "create" button become grayed-out as soon as you try to customize the rule, with no apparent reason nor any explanation

Wiki:

A valid filter in the context of the element picker is one which matches at least one element on the web page [...] The Create button will be enabled only if a proper filter can be created from the content of the text area. Once you click the Create button, the element picker will add the necessary tokens to ensure the filter apply only to the current web site, will add it to your custom list of filters and save it.

@gorhill gorhill closed this as completed Sep 22, 2015
@harshanvn
Copy link

The interface is very poorly designed: it took me hours to find were to enter a filter rules: clicking on the icon on the toolbar button gives you a menu with only 2 icons: one that leads you to a "picker GUI" the other to a "logger view", none of them allow to simply enter a filter rule, which is supposed to be the core principle of the addon!

Once you get a hang of it, it is actually quite well organized and is quite easy to use...

To better have an understanding over the UI, it is defintely needed to take a look at the quick gides listed under Wiki section.

@harshanvn
Copy link

the "logger view" does not allow you to enter rules

There is absolutely no documentation

this is not true. Please refer Wiki. And for logger, look here... It will explain how to create filters (static/dynamic), and how to filter log entries (which is quite brilliant)..

remember, Filters can be created in below ways -

  • through logger, for net filters.
  • through element picker, for cosmetic(and their respective network filters).
  • through dashboard.

For all the above types, you can refer wiki for how-to

@liar666
Copy link
Author

liar666 commented Sep 22, 2015

Hey! Thanks all for your quick answers... Sorry for the language... I'm still on my nerves after my unfortunate attempts...

You're right, it's not written on your sites that you use regexes, but I was referred to this addon on some forums that pretends it does. My mistake to have believed all I read on the internet :) Please forgive me.

Concerning the docs, it would be more than welcome to provide the 2 links you give me on the mozilla-addons webpage and/or in the about:addons page and/or on the pages themselves.

Whatever, your quick reaction gives me the will to learn more about this tool. Thanks and sorry again for the agressivity...

@harshanvn
Copy link

learn more about this tool

Yes, this tool is quite different, as it serves for a larger role, than merely as an ad-blocker.

Just go through the wiki. You will see lot of detail on how-to and its inner workings too.. :)

nor any blog/forum/... that would talk about it

You can go to wilderssecurity, where you could ask the questions on usage..

@gorhill
Copy link
Owner

gorhill commented Sep 22, 2015

Concerning the docs, it would be more than welcome to provide the 2 links you give me on the mozilla-addons webpage and/or in the about:addons page and/or on the pages themselves.

@gorhill gorhill reopened this Sep 22, 2015
gorhill added a commit that referenced this issue Sep 22, 2015
@gorhill
Copy link
Owner

gorhill commented Sep 22, 2015

Link to documentation added to description. AMO updated with new version.

@gorhill gorhill closed this as completed Sep 22, 2015
@lewisje
Copy link

lewisje commented Sep 22, 2015

I thought uBlock Origin did allow regexes as blocking rules now.

@gorhill
Copy link
Owner

gorhill commented Sep 22, 2015

I thought uBlock Origin did allow regexes as blocking rules now.

It does, just as per ABP-filter syntax allows it. The statement I quoted here is wrong, as it implies uBlock's filter syntax is wholly regex-based, which is not the case.

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

4 participants