uBlock icon indicating copy to clipboard operation
uBlock copied to clipboard

Custom cosmetic filter fails to apply

Open Haikuch opened this issue 11 years ago • 41 comments

Hi, sometimes the cosmetic filter doesnt work after reload, example on this page: Startpage.com I'am trying to filter the red box, it works with the content but the red box itself always appears again after reloading, so the filter

footer > .box-red

doesn't work

Haikuch avatar Mar 09 '15 21:03 Haikuch

I don't see a red box.

gorhill avatar Mar 09 '15 22:03 gorhill

sorry: https://startpage.com/deu/?

Haikuch avatar Mar 09 '15 22:03 Haikuch

Worked fine from here, red box is gone for good.

gorhill avatar Mar 09 '15 22:03 gorhill

Need: your filter lists + any and all settings different from default settings.

gorhill avatar Mar 09 '15 22:03 gorhill

Let me see, you were asking me earlier about dynamic filtering in #974... Did you create an allow rule (green) for startpage.com?

gorhill avatar Mar 09 '15 23:03 gorhill

no I didnt, had the problem already before playing with the dynamic rules but I solved it now with adding the rule startpage.com###footer > .box-red manually to the filterlist (my filters). But if I try using the pipette, it disappears, and comes back after reloading

Haikuch avatar Mar 09 '15 23:03 Haikuch

That's what I used, the eye dropper.

gorhill avatar Mar 09 '15 23:03 gorhill

You did not use the eye dropper originally, or else your filter would have been startpage.com###footer > .box-red, while you said it was ###footer > .box-red.

gorhill avatar Mar 09 '15 23:03 gorhill

mh ok, I'am using Firefox might be interesting?

Haikuch avatar Mar 09 '15 23:03 Haikuch

Me too.

gorhill avatar Mar 09 '15 23:03 gorhill

Try to reproduce your own test case as described here, see for yourself.

gorhill avatar Mar 09 '15 23:03 gorhill

The only way for the red box to re-appear is to disable cosmetic filtering. So you had somehow disabled cosmetic filtering. As said, becareful with the settings, and you won't be able to reproduce your own case.

gorhill avatar Mar 09 '15 23:03 gorhill

Filter created. Reload page, red box doesn't come back.

gorhill avatar Mar 09 '15 23:03 gorhill

Id did use it originally, but that might be the proble. I reporduced it now.

  1. I deleted all https://startpage.com/deu filters in myFilters
  2. I reloaded and used the eye dropper
  3. It creates the rule ###footer > .box-red > a[href="/deu/cebit.html"]
  4. then the red box is still there
  5. I use eyedropper again for the red box
  6. it shows rule ###footer > .box-red
  7. but after reloading the red box is still there and the rule of 6. isnt saved

If I change in 3. the rule manually (in the confirm task) in ###footer > .box-red --> it works

seems that the first rule blocks saving the second one?

Haikuch avatar Mar 09 '15 23:03 Haikuch

No, it worked fine, even if you create the wrong filter the first time.

gorhill avatar Mar 09 '15 23:03 gorhill

This is the filters which were created and I can't bring back the red box:

! 3/9/2015, 7:42:38 PM https://startpage.com/deu/
startpage.com###footer > .box-red > a[href^="/deu/cebit.html"]

! 3/9/2015, 7:42:44 PM https://startpage.com/deu/
startpage.com###footer > .box-red

You will have to paste here the same filters which you have in your custom filters if you want this issue to go somewhere. I just can't reproduce.

gorhill avatar Mar 09 '15 23:03 gorhill

Note that you still didn't answer https://github.com/gorhill/uBlock/issues/976#issuecomment-77958657. I can't help you if you do not provide key information.

gorhill avatar Mar 09 '15 23:03 gorhill

As I told, I can't paste it, because the second one isn't saved in the filter list! Thats what is written in myFilters after I did step 1-7:

startpage.com###footer > .box-red > a[href="/deu/cebit.html"]

Haikuch avatar Mar 09 '15 23:03 Haikuch

startpage.com###footer > .box-red > a[href="/deu/cebit.html"] does not get rid of the red box.

Just pick the right one in the list of candidate filters.

gorhill avatar Mar 09 '15 23:03 gorhill

So the second rule I created using the eyedropper is unsaved. how can I get: "any and all settings different" to you?

Haikuch avatar Mar 09 '15 23:03 Haikuch