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

Better compatibility with subdomains + adding an intro to the list #4

Open
wants to merge 16 commits into
base: main
Choose a base branch
from

Conversation

NotaInutilis
Copy link

This is my first experience with REGEX and a few more command lines, but it worked! It might not be up to your standards though.

  • Changed how domains are processed so that the blocklist includes subdomains by auto removing www. and adding a *. before domains.
  • Ordered the blocklist in alphabetical order. (completely unnecessary, but I learned the sort command!)
  • Added a list_info file that is appended to the beginning of the blocklist file, It adds the list's name and URL, if this feature ever gets into uBlacklist (and for general ease of use) [Enhancement] Import name from list automatically [Enhancement] Import name from list automatically iorate/ublacklist#351

This is my first foray into regex please don't judge me.
I'm still not sure what I'm doing.
Making that first regex experience actually work.
By trial and (mostly) error, I learned that the character `*` does not need to be escaped in the replacement string.
Adding name and url to the list, if this feature ever gets into uBlacklist (and for general ease of use)
[Enhancement] Import name from list automatically iorate/ublacklist#351
"ask chatgpt for help" they told me
"oh it can actually explain what the command is doing" i thougth
"chatgpt is an utter and complete fool" i then realized, cursing my so-called friends
@franga2000
Copy link
Owner

franga2000 commented Aug 8, 2023

Hi, thanks

@franga2000 franga2000 closed this Aug 8, 2023
@franga2000
Copy link
Owner

Oops sorry, my phone lagged and I accidentally pressed close 😅

@franga2000 franga2000 reopened this Aug 8, 2023
@franga2000
Copy link
Owner

Thanks for the contribution! Everything looks good, but I prefer the list to not be sorted so it's easier to look at commit diffs - if it's sorted and you add 5 domains, they will be inserted in 5 different places in the file and so the diff will be in 5 chunks that are annoying to scroll through, but if everything is appended to the end, all the additions are shown in one chunk.

So if you remove the sort command, I can merge this

@NotaInutilis
Copy link
Author

No problem! That's done!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants