Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
gofile.io
#11
Check API URL has changed as well as token

Code:
function gofileBulkCheck()
        {
            var arr = this.links[0].split("\r\n");
            var arrlen = arr.length;
            var token;
            GM_xmlhttpRequest
            (
                {
                    method: 'GET',
                    url: 'https://api.gofile.io/createAccount',
                    headers: {
                        'User-agent': rUA(),
                        'Content-type': 'application/x-www-form-urlencoded',
                        'Referer': ''
                    },
                    onload: function(result)
                    {
                        var resp = JSON.parse(result.responseText);
                        token = resp.data.token;
                        while(arrlen--)
                        {
                            postRequest(arr[arrlen], token);
                        }
                    }
                }
            );
            function postRequest(gofileLink,token)
            {
                var linkId = gofileLink.match(/gofile\.io\/d\/(\w+)/)[1];

                GM_xmlhttpRequest
                (
                    {
                        method: "GET",
                        url: 'https://api.gofile.io/getContent?contentId=' + linkId + '&token=' + token + '&wt=4fd6sg89d7s6',
                        headers: {
                            'User-agent': rUA(),
                            'Referer': ""
                        },

                        onload: function (result)
                        {

                            var res = $.parseJSON(result.responseText);
                            if (res.status=="ok")
                            {
                                DisplayTheCheckedLinks([gofileLink], 'alive_link');
                                return;
                            }

                            if (res.status=='error-notFound')
                            {
                                DisplayTheCheckedLinks([gofileLink], 'adead_link');
                                return;
                            }
                        }
                    }
                );
            }
        }
Reply
#12
thanks!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)