Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
gofile.io
#5
Adding Domain
Code:
"gofile.io",

Api function
Code:
if (GM_getValue("Check_gofile_dot_io_links", false))
{
addHost(
"gofile", //hostname
"gofile\\.io\/d\/\\w+", //linkregex
"//a[contains(@href,'gofile.io')]", //xpath
100000, //blocksize
null, //corrmatch
null, //corrreplwhat
null, //corrreplwith
null, //separator
null, //api url
null, //postdata
null, //linkregex
null, //liveregex
null, //deadregex
null, //unavaregex
gofileBulkCheck //function delegate
)
}

Bulk Check
Code:
function bayfilesBulkCheck()
        {
            var arr = this.links[0].split("\r\n");
            var i = arr.length;

            while(i--)
            {
                postRequest(arr[i]);
            }

            function postRequest(bayfilesLink)
            {

                var id = bayfilesLink.match(/bayfiles\.(?:com|net)\/(?:p\/|)(\w+)/)[1];

                GM_xmlhttpRequest(
                    {
                        method: "GET",
                        url: 'https://api.bayfiles.com/v2/file/' + id + "/info",
                        headers: {
                            'User-agent': rUA(),
                            'Content-type': 'application/json',
                            'Referer': ""
                        },
                        onload: function (result)
                        {
                            var res = $.parseJSON(result.responseText);
                            if (res.status == false)
                            {
                                DisplayTheCheckedLinks([id], 'adead_link');
                                return;
                            }

                            if (res.status == true)
                            {
                                DisplayTheCheckedLinks([id], 'alive_link');
                            }
                        }
                    });
            }
        }
Reply


Messages In This Thread
gofile.io - by frtgs - 08-11-2022, 11:03 AM
RE: gofile.io - by mental - 08-13-2022, 02:23 AM
RE: gofile.io - by frtgs - 08-23-2022, 01:02 AM
RE: gofile.io - by mental - 08-23-2022, 03:16 AM
RE: gofile.io - by tgs - 03-03-2023, 12:23 PM
RE: gofile.io - by mental - 03-04-2023, 12:47 AM
RE: gofile.io - by tgs - 03-04-2023, 12:25 PM
RE: gofile.io - by mental - 03-05-2023, 04:32 AM
RE: gofile.io - by tgs - 03-05-2023, 05:39 PM
RE: gofile.io - by mental - 03-05-2023, 08:15 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)