[Android] Perfect the redirection process
mrvivacious opened this issue · comments
Perfection is when the redirection experience on Android is the same as the experience on the Chrome extension.
In short, no part of the porn site loads on the screen. The user is immediately redirected.
Work description
Can we tell if Google Chrome is open?
If Chrome is open, can we read the contents of the webpage?
If we can read the webpage, can we get the URL (or enough adult keywords to trigger some kind of "suspicious" alarm)?
+ If we can get the URL, can we redirect the user if it's a pornographic URL?
+ If the site seems suspicious, TODO
Can we get the URL and redirect the user BEFORE any part of the site loads on-screen (ie images, gifs, thumbnails)
- Parse AccessibilityEvent node for url
- todo
possibly relevant https://jsoup.org/cookbook/input/parse-document-from-string