Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Gofile again
#5
Mine is similar to Bzh4ever and is working for me atleast. I copied is postrequest part
Code:
function gofileBulkCheck()
        {
            var arr = this.links[0].split("\r\n");
            var arrlen = arr.length;
            var token;
            GM_xmlhttpRequest
            (
                {
                    method: 'Post',
                    url: 'https://api.gofile.io/accounts',
                    headers: {
                        'User-agent': rUA(),
                    },
                    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/contents/' + linkId + '?wt=4fd6sg89d7s6',
                            headers: {
                                'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
                                'Authorization': 'Bearer ' + token,
                           },
                            onload: function (result)
                            {
                                var res = JSON.parse(result.responseText);
                                if (res.status!=="ok" || res.status=='error-notFound' || res.data.totalSize=="0" || res.data.createTime==null)
                                {
                                    DisplayTheCheckedLinks([gofileLink], 'adead_link');
                                    return;
                                }

                                else
                                {
                                    DisplayTheCheckedLinks([gofileLink], 'alive_link');
                                    return;
                                }
                            }
                        }
                    );
                }
        }
Reply


Messages In This Thread
Gofile again - by Bzh4ever - 03-19-2024, 08:57 PM
RE: Gofile again - by mental - 03-19-2024, 10:24 PM
RE: Gofile again - by Bzh4ever - 03-22-2024, 01:48 AM
RE: Gofile again - by mental - 03-22-2024, 07:17 PM
RE: Gofile again - by tgs - 04-11-2024, 09:30 PM
RE: Gofile again - by mental - 04-15-2024, 02:10 AM
RE: Gofile again - by tgs - 04-18-2024, 07:37 PM
RE: Gofile again - by mental - 04-18-2024, 08:09 PM
RE: Gofile again - by fonzie - 05-04-2024, 08:06 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)