-
Notifications
You must be signed in to change notification settings - Fork 45
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
redirecting ads #76
Comments
and some ads are still shown. website name: fmovies |
I forgot to handle redirections in |
@hikikomoriphoenix we can inject javascript to remove these ads for some specific websites |
That would require downloading the webpage, and then search entire text for ads, remove ads, and load the adless webpage back to the webview. The solution I used is to simply override the
What I assume it does is, it will stop from sending the original request and will immediately return an empty response. I have not made enough observation to know if it works since my focus is set on other parts of the app and also currently busy developing the new version. As for the redirection, it's simply just a matter of doing the same to I am also looking for other solutions, preferably one that uses the adblock extension in chrome. |
@hikikomoriphoenix I think, more preferable using multi tab, the redirect ads usually open in new tab. but because lm downloader is only one tab. The redirect using the curent tab of browser. |
I've actually implemented something like a multitab in this app. There's a very small plus sign at the bottom right corner which allows you to open a new tab(I called it window). Beside it is a windows count indicator which also allows you to switch pages. I could simply just open a new window for the redirect. But ads are annoying. I don't see any reason why I shouldn't block them when redirected. |
maybe for now it would be better to have My-List where we some specific websites whose redirection we have to disable, and in shouldOverrideUrl we can stop any redirection which are going away from main page |
found resources of adblock of ublock origin, |
I'm already using EasyList. But it says its tested in adblock and ublock origin. Most likely it's just the same filters. Here's my implementation |
okay i will look into it, and try other filter too see if it improves the adblock in any way.. |
pages are still able to redirect to ads websites.
The text was updated successfully, but these errors were encountered: