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

Remove Youtube #54

Open
abidyoung opened this issue Jun 21, 2019 · 3 comments
Open

Remove Youtube #54

abidyoung opened this issue Jun 21, 2019 · 3 comments

Comments

@abidyoung
Copy link

How to completely remove youtube. that this downloader can't download from youtube

@SamraMehboob
Copy link

Hi
I want to block Youtube as it's not legal to download video from Youtube.
Did you find the solution.
Please let me know
thanks

@MarcoPolo267
Copy link

MarcoPolo267 commented Nov 26, 2020

In BrowserWindow.java add this:

@Override
               public void onPageStarted(final WebView view, final String url, Bitmap favicon) {
                   new Handler(Looper.getMainLooper()).post(new Runnable() {
                       @Override
                       public void run() {
                           TextView urlBox = BrowserWindow.this.view.findViewById(R.id.urlBox);
                           if(url.contains("youtube")){
                               Toast.makeText(getActivity(), "Sorry can not open this link!", Toast.LENGTH_SHORT).show();
                               getActivity().finishAffinity();
                           }else{
                               urlBox.setText(url);
                               BrowserWindow.this.url = url;
                           }
                       }
                   });

                   loadingPageProgress.setVisibility(View.VISIBLE);
                   setupVideosFoundHUDText();
                   super.onPageStarted(view, url, favicon);
               }

@puppykickr
Copy link

puppykickr commented Nov 30, 2020 via email

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

No branches or pull requests

4 participants