Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
fikper.com links
#6
Adding Domain
Code:
"fikper.com"

Api function
Code:
if (GM_getValue("Check_fikper_dot_com_links", false))
        {
            addHost(
                "fikper", //hostname
                "fikper\\.com\/\\w+", //linkregex
                "//a[contains(@href,'fikper.com')]", //xpath
                100000, //blocksize
                null, //corrmatch
                null, //corrreplwhat
                null, //corrreplwith
                null, //separator
                null, //api url
                null, //postdata
                null, //linkregex
                null, //liveregex
                null, //deadregex
                null, //unavaregex
                fikperBulkCheck //function delegate
            )
        }
Bulk Check
Code:
function fikperBulkCheck()
        {
            var arr = this.links[0].split("\r\n");
            var i = arr.length;

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

            function postRequest(fikperLink)
            {
                var linkId = fikperLink.match(/fikper\.com\/(\w+)/)[1];

                GM_xmlhttpRequest(
                    {
                        method: "POST",
                        url: 'https://sapi.fikper.com',
                        headers: {
                            'User-agent':'Mozilla/4.0 [en] (Windows NT 6.0; U)',
                            'Content-type': 'application/json',
                            'Referer': "",
                            'Origin':'https://fikper.com'
                        },
                        data: JSON.stringify({'fileHashName': linkId}),
                        onload: function (result)
                        {
                            var res = JSON.parse(result.responseText);

                           // var status = res.hasOwnProperty('name');

                            if (res.hasOwnProperty('name'))
                            {
                                DisplayTheCheckedLinks([fikperLink], 'alive_link');
                                return;
                            }


                            if (res.message=='Not Found')
                            {
                                DisplayTheCheckedLinks([fikperLink], 'adead_link');
                                return;
                            }
                        }
                    });
            }
        }
Reply


Messages In This Thread
fikper.com links - by tgs - 02-17-2023, 07:38 AM
RE: fikper.com links - by mental - 02-18-2023, 09:42 PM
RE: fikper.com links - by tgs - 02-19-2023, 07:43 PM
RE: fikper.com links - by tgs - 02-22-2023, 03:32 PM
RE: fikper.com links - by mental - 02-22-2023, 09:34 PM
RE: fikper.com links - by tgs - 02-23-2023, 07:57 PM
RE: fikper.com links - by mental - 02-24-2023, 01:31 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)