<commit_before># Content Blocker for iOS
This app lets you use a github repository as the source for Safaris Content Blocker. Please fork [https://github.com/yene/blockerList](https://github.com/yene/blockerList) and add your own filters. Don't forget to enable the Content Blocker inside Safaris settings.

![screenshot](screenshots/v1.png)![settings](screenshots/settings.png)

## Todo
- [X] on first run copy example blockerList from bundle to temporary
- [X] grab data from github repo
- [ ] check when updated last time
- [X] get all json files recursive
- [X] combine all json files
- [X] send json file to conten blocker 
- [ ] inform user that he has to toggle content blocker in settings
- [X] Write the data to shared folder
- [ ] remove duplicates in blockList
- [ ] add icons and artwork
- [ ] add blockerList as submodule

## Maybe Later
- [ ] inform user that there is an update in the github repo (notification?)
- [ ] add support for direct download of json and zip

## Questions
* Do i have to toggle the settings or is reload enough? calling reload is enough
* How do i find out if user enabled my content blocker?

## Links
* https://www.hackingwithswift.com/safari-content-blocking-ios9<commit_msg>added more resources to readme<commit_after># Content Blocker for iOS
This app lets you use a github repository as the source for Safaris Content Blocker. Please fork [https://github.com/yene/blockerList](https://github.com/yene/blockerList) and add your own filters. Don't forget to enable the Content Blocker inside Safaris settings.

![screenshot](screenshots/v1.png)![settings](screenshots/settings.png)

## Todo
- [X] on first run copy example blockerList from bundle to temporary
- [X] grab data from github repo
- [ ] check when updated last time
- [X] get all json files recursive
- [X] combine all json files
- [X] send json file to conten blocker 
- [ ] inform user that he has to toggle content blocker in settings
- [X] Write the data to shared folder
- [ ] remove duplicates in blockList
- [ ] add icons and artwork
- [ ] add blockerList as submodule

## Maybe Later
- [ ] inform user that there is an update in the github repo (notification?)
- [ ] add support for direct download of json and zip

## Questions
* Do i have to toggle the settings or is reload enough? calling reload is enough
* How do i find out if user enabled my content blocker?

## Links
* https://www.hackingwithswift.com/safari-content-blocking-ios9
* https://easylist.adblockplus.org/de/
* https://www.webkit.org/blog/3476/content-blockers-first-look/
* https://developer.apple.com/library/prerelease/ios/releasenotes/General/WhatsNewInSafari/Articles/Safari_9.html
* https://developer.apple.com/videos/wwdc/2015/?id=511
{'fraction_non_alphanumeric': 0.09247706422018348, 'fraction_numerical': 0.005871559633027523, 'mean_word_length': 4.153119092627599, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 10, 'lorem ipsum': 0, 'www.': 3, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5944667', 'n_tokens_mistral': 827, 'n_tokens_neox': 774, 'n_words': 331}