UserScripts Archive
Gofile again - Printable Version

+- UserScripts Archive (http://usa.x10host.com/mybb)
+-- Forum: UserScripts Archive (http://usa.x10host.com/mybb/forumdisplay.php?fid=1)
+--- Forum: Script Support (http://usa.x10host.com/mybb/forumdisplay.php?fid=3)
+---- Forum: W.A.R. Links Checker Premium (http://usa.x10host.com/mybb/forumdisplay.php?fid=6)
+---- Thread: Gofile again (/showthread.php?tid=570)



Gofile again - Bzh4ever - 03-19-2024

Hello,

new release API's Gofile

I test this code and it seems to be OK 
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': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
                    },
                    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;
                                }
                            }
                        }
                    );
                }

Link Alive:
https://gofile.io/d/ivAERd

Folder empty:
https://gofile.io/d/22n4sO
https://gofile.io/d/OqzfLj

Link Dead:
https://gofile.io/d/useLGB
https://gofile.io/d/udnsAs

Undefined:
https://gofile.io/d/MJjFB

Best regards
Bzh


RE: Gofile again - mental - 03-19-2024

i tried it and it's not working for me


RE: Gofile again - Bzh4ever - 03-22-2024

Hello,

Have you copy all the code from the first line to the last ?
There are many changes.
Here the result for me

[Image: image.num1711071380.of.world-lolo.com.jpg]


RE: Gofile again - mental - 03-22-2024

yep all the code, tried several times, none of the links check for me.


RE: Gofile again - tgs - 04-11-2024

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;
                                }
                            }
                        }
                    );
                }
        }



RE: Gofile again - mental - 04-15-2024

thanks but it does not work for me either, none of the links in post #1 above are being checked.


RE: Gofile again - tgs - 04-18-2024

This is the full working function I updated in your script, you were using old account creating and checking urls, I have attached image of links checked using the below code, completely remove yours and paste this one for bulk checking part
[Image: image.png]
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': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
                        '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/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")
                                {
                                    DisplayTheCheckedLinks([gofileLink], 'alive_link');
                                    return;
                                }

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



RE: Gofile again - mental - 04-18-2024

(04-18-2024, 07:37 PM)tgs Wrote: This is the full working function I updated in your script, you were using old account creating and checking urls, I have attached image of links checked using the below code, completely remove yours and paste this one for bulk checking part
[Image: image.png]
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': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
                        '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/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")
                                {
                                    DisplayTheCheckedLinks([gofileLink], 'alive_link');
                                    return;
                                }

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

this version of the code works for me i will add it to the script, Thanks for the code.


RE: Gofile again - fonzie - 05-04-2024

(04-18-2024, 08:09 PM)mental Wrote:
(04-18-2024, 07:37 PM)tgs Wrote: This is the full working function I updated in your script, you were using old account creating and checking urls, I have attached image of links checked using the below code, completely remove yours and paste this one for bulk checking part
[Image: image.png]
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': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
                        '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/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")
                                {
                                    DisplayTheCheckedLinks([gofileLink], 'alive_link');
                                    return;
                                }

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

this version of the code works for me i will add it to the script, Thanks for the code.

Thanks for updating the script  Wink