Skip to content

Commit 4911824

Browse files
authored
Change ADS source (#28)
* change ads source * docs: change ads source
1 parent 595ad46 commit 4911824

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

README.fa.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ go run ./ --outputdir=../
233233
- مخزن [V2fly Domain List Community](https://github.com/v2fly/domain-list-community) (لایسنس MIT)
234234
- [لیست شخصی][link-custom]
235235
- تبلیغات:
236-
- مخزن [PersianBlocker](https://github.com/MasterKia/PersianBlocker) (لایسنس AGPL-3.0)
236+
- مخزن [uBOPa - uBO Parsi filter list](https://github.com/nimasaj/uBOPa) (لایسنس MIT)
237237

238238
اگر شما منابع دیگری می‌شناسید، و یا وب‌سایتی پیدا کرده‌اید که اینجا نیست لطفا یک
239239
[issue][link-issues] باز کنید و یا فایل [custom_domains.py][link-custom] را تغییر داده و [PR][link-pr] ایجاد کنید.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ go run ./ --outputdir=../
232232
- [V2fly Domain List Community](https://github.com/v2fly/domain-list-community) (MIT License)
233233
- [Custom List][link-custom]
234234
- ADs:
235-
- [PersianBlocker](https://github.com/MasterKia/PersianBlocker) (AGPL-3.0 License)
235+
- [uBOPa - uBO Parsi filter list](https://github.com/nimasaj/uBOPa) (MIT License)
236236
237237
If you know of any other source, or you found a website that isn't here, please open
238238
an [issue][link-issues] or add that specific website to [custom_domains.py][link-custom] and make a [PR][link-pr].

src/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# https://eservices.ito.gov.ir/page/iplist
22
g2b_gov_url = "https://raw.githubusercontent.com/bootmortis/ito-gov-mirror/main/out/domains.csv"
3-
ads_url = "https://raw.githubusercontent.com/MasterKia/PersianBlocker/main/PersianBlockerHosts.txt"
3+
ads_url = "https://raw.githubusercontent.com/nimasaj/uBOPa/master/uBOPa_Pihole.txt"
44
v2fly_base_url = "https://raw.githubusercontent.com/v2fly/domain-list-community/master/data/"
55

66
# input files

src/get_domians.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def ads() -> Iterable[str]:
2828

2929
ads = resp.text
3030
ads = re.sub(r'(?m)^\s*#.*\n?', '', ads)
31-
ads = ads.splitlines()[1:]
31+
ads = ads.splitlines()
3232
ads = (ad.strip() for ad in ads if ad.strip() != '')
3333
ads = filter(utils.is_not_ip, ads)
3434
ads = filter(utils.is_url, ads)

0 commit comments

Comments
 (0)