-
Notifications
You must be signed in to change notification settings - Fork 29
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
Refactor filtering rules #246
Comments
@ehrhardt06 I see you've submitted some pretty good PRs so far, thank you :) Are you interested in this? Basically, the goal is to refactor the current rules. I think there may be several old or outdated rules in our filter. I also plan to open some PRs following this scenario as my free time allows. Note: I prefer English communication where possible, as other filter maintainers probably don't understand Hungarian :) |
@scripthunter7 Sure, I'm happy to help. I'm quite a beginner in coding (it's far from being what I do, it's just a hobby for me) and I'm going to be quite busy in the coming weeks. So I will be slow, but I will try to open some new PRs over time.
gotcha :) |
Thank you! 🙂 Please keep in mind that this is an epic issue, you don't have to solve everything, it's a long process. If you can help with just a few PRs by solving tasks that are close to you, it's already a huge help :) If you need help with anything, feel free to tag me in your PRs / comments. |
@ehrhardt06 I think at this point we should focus on dead websites, especially those with a non-hu TLD |
@scripthunter7 sure thing |
Since I took over the maintenance of the filter list, I've made many optimizations on it, but I think that there are still many filtering rules that should be improved. This issue focuses on solving this problem.
Goals:
*=
and^=
attribute selectors should be reduced/replaced by a more optimal solution*=
^=
*="banner"
*="hirdetes"
In my opinion, the ideal scenario in the first round is to do a refactoring on each main website first, which consists of the following steps:
fix/246/xy.hu
where 246 refers to this issue andxy.hu
to the corresponding website's address. Such a PR will probably affect several section files at the same time, but this is not a problemSome general principles:
#id
selector, avoid the[id="id"]
attribute selector, try to avoidnth-child
, etc.##.selector1, .selector2
please always use##.selector1
and##.selector2
Any help is greatly appreciated! I think even some PR can be a big help if someone has the free time to do it. It's enough to take small steps, we don't have to do it all at once. 🙂
The text was updated successfully, but these errors were encountered: