UserScripts Archive
gofile.io - 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.io (/showthread.php?tid=556)

Pages: 1 2


RE: gofile.io - tgs - 01-29-2024

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



RE: gofile.io - mental - 01-30-2024

thanks!