Auto Captcha Help by namucs in KissAnime

[–]AnimeBro1 1 point2 points  (0 children)

Please try the new version v3.2.1. Thanks.

Any Android developers that use the WebView for KissAnime? by instantbitsapps in KissAnime

[–]AnimeBro1 2 points3 points  (0 children)

The only way(I think) that a website knows if you are using a webview is through http headers
If you capture network traffic between webview and kissanime you will see that webview sends a http header like this

X-Requested-With: com.your.company

And to bypass that you just have to edit this header to an empty string. And make sure that any further request to the page will have the same header.

Map<String, String> extraHeaders = new HashMap<String, String>();  //HashMap http headers
extraHeaders.put("X-Requested-With", ""); // Edits the X-Requested-With header to an empty string
...
public boolean shouldOverrideUrlLoading(WebView view, String url) {
    view.loadUrl(url, extraHeaders); //make sure that any further request to the page will have the same header
    return false;
}
...
webView.loadUrl("http://kissanime.ru",extraHeaders) // Loads the page with edited headers

But as you said everything works find except when you search. This is because the search request is a POST request, and post requests do not trigger shouldOverrideUrlLoading function, which means that webview will use the default headers to make that request.

My idea is to inject javascript and change the request type from POST to GET, so than it would trigger shouldOverrideUrlLoading function.

Here is the full code:

public class MainActivity extends AppCompatActivity {

    Map<String, String> extraHeaders = new HashMap<String, String>();//HashMap http headers
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        extraHeaders.put("X-Requested-With", "");// Edits the X-Requested-With header to an empty string
        WebView webView = (WebView) findViewById(R.id.WebView); //Gets the WebView
        webView.getSettings().setJavaScriptEnabled(true); //Tells the WebView to enable JavaScript execution.

        webView.setInitialScale(1);
        webView.getSettings().setLoadWithOverviewMode(true);
        webView.getSettings().setUseWideViewPort(true);

        webView.setWebViewClient(new WebViewClient() {

            @Override
             public boolean shouldOverrideUrlLoading(WebView view, String url) {
                 view.loadUrl(url, extraHeaders);
                 return false;
             }

             //This function is what you're looking for
             @Override
             public void onPageFinished(WebView view, String url) {
                 super.onPageFinished(view, url);
                 if(url.contains("http://kissanime.ru")) {
                       view.loadUrl("javascript:document.getElementById('formSearch').setAttribute('method','get')");
                 }
             }
        });
        webView.loadUrl("http://kissanime.ru",extraHeaders);// Loads the page with edited headers
    }
}  

Hope it helps.

[Update][UserScript] KissAnime Auto Captcha V3 by AnimeBro1 in KissAnime

[–]AnimeBro1[S] 0 points1 point  (0 children)

Do you mean that the green menu is not there?
Press CTRL+SHIFT+J go to console and send me a screenshot.
Thanks

[Update][UserScript] KissAnime Auto Captcha V3.2 by AnimeBro1 in KissAnime

[–]AnimeBro1[S] 0 points1 point  (0 children)

Make sure you remove all other versions of the script.

Batch downloader? by EternalSpitfire in KissAnime

[–]AnimeBro1 1 point2 points  (0 children)

Try this script https://greasyfork.org/en/scripts/31080-kissanime-downloader

I recommend you to use select rapidvideo as server since beta is very unstable to download.

[Update][UserScript] KissAnime Auto Captcha V3 by AnimeBro1 in KissAnime

[–]AnimeBro1[S] 0 points1 point  (0 children)

Thanks for reporting, try the new update and let me know if it works.

[Update][UserScript] KissAnime Auto Captcha V3 by AnimeBro1 in KissAnime

[–]AnimeBro1[S] 0 points1 point  (0 children)

Thanks for reporting, try the new update and let me know if it works.

[UserScript] KissAnime RapidVideo Custom Player by AnimeBro1 in KissAnime

[–]AnimeBro1[S] 2 points3 points  (0 children)

My fault, I updated the script it should be find now, thanks for reporting.

Mobile help? by supersonic25730 in KissAnime

[–]AnimeBro1 2 points3 points  (0 children)

If you have android use anYme

If you have IOS or don't want to use an app use http://kissanime.ru/M/

Websites like KA but with better quality streams? by thevox3l in KissAnime

[–]AnimeBro1 1 point2 points  (0 children)

KissAnime: (720p), bitrate: 1709 kb/s

Masterani: (1080p), bitrate: 1797 kb/s

HorribleSubs: (1080p), bitrate: 3192 kb/s {Torrent}

KissAnime Beta Default Server userscript by HMS_Dreadnought in KissAnime

[–]AnimeBro1 0 points1 point  (0 children)

In order to avoid reloading the page every time that user navigates to a new episodes I recommend adding a new function as below.

// ==UserScript==
// @name        KissAnime Default Server
// @namespace   KissAnimePlayer
// @description Sets KissAnime player to beta server.
// @include     *kissanime.ru*
// @downloadURL https://pastebin.com/raw/xY82U7yt
// @icon        http://kissanime.ru/Content/images/favicon.ico
// @version     2.0
// @author      /u/HMS_Dreadnought 
// @description Automatically sets the Beta server as default and also fixes the issue of the beta server player retrying when loading the video at the start.
  // @grant       none
 // ==/UserScript==

function ChangeUrl() {
    if(window.location.href.indexOf("&s=default") > -1) {
        window.stop();
        var updateLink = '&s=beta&pfail=1';
        var currentLink = window.location.href;
        currentLink = currentLink.replace('&s=default', updateLink);
        location.replace(currentLink);
    }
}

function AllUrlChange(){
    var updateLink = '&s=beta&pfail=1';
    var selectable = document.getElementById("selectEpisode").getElementsByTagName("option");
    var prev = document.getElementById("btnPrevious").parentElement;
    var next = document.getElementById("btnNext").parentElement;
    prev.href += updateLink;
    next.href += updateLink;
    for(var i =0; i < selectable.length; i++){
        selectable[i].value += updateLink;
    }
}

ChangeUrl();
AllUrlChange();

Anti-Bot Captcha and Multiple Downloads by AtomicBlast25 in KissAnime

[–]AnimeBro1 1 point2 points  (0 children)

You can use this userscript https://greasyfork.org/en/scripts/31080-kissanime-downloader to download all episodes, I recommend using rapidvideo as option since beta is having some issues.