User rules and Custom filters make different results

hmmteresting

New Member
I made a rule which controls css at desktop. I exported this and moved to the phone. The rule didn't work. So I wrote exact same rule at User rules tab. It worked.
What makes difference like this? It was very simple code. Just adds {height:auto !important} to specific class..
 

Blaz

Moderator & Translator
Staff member
Moderator
"Trusted filter" must be enabled for the custom filter (security feature).
 

hmmteresting

New Member
Tried on latest AdGuard for Android nightly and working fine when I add via custom filter and set Trusted ON:
First, I want to say thank you to reply my thread. It worked but I'm very confusing now..
When I copy your text, it works perfectly. So I thought I mistaked on letters.
But I couldn't find any difference between yours and mine.
Then I found that your text is 57byte, and my text is 60byte. I tried file compare in some websites, but they are saying that two files have no difference.
And when I write text with mobile app text editor, it's size was 54 byte, didn't work too.

Thanks again for your answer. I satisfied with your solution. Written above is just information. Please don't mind.
 

Attachments

Blaz

Moderator & Translator
Staff member
Moderator
I only modified your initial rule a bit, additional ; near the end and a space before the {.
 

hmmteresting

New Member
I only modified your initial rule a bit, additional ; near the end and a space before the {.
That was not a problem. I tried spaced one and not spaced one. Regarless that spaces or semi colon, edited from original one still didn't work.
If that was the reason, working file must be bigger than wrong one. But as uploaded, the worked one is smaller.
 
Top