Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
fikper.com links
#1
Can you add this host?

Code:
https://fikper.com/Uoulnj18yT/Driver_Talent_Pro_8.1.3.14.rar.html
Reply
#2
Sorry i can not get that host to check links
Reply
#3
Yeah no problem, the page is binding little late after loading. probably we need to wait till DOM elements appear on page and check it continuously after some interval for it to appear
Reply
#4
Smile Found a way to add it, they are using api to load page data using angular. will share code later after adding to WAR
Reply
#5
(02-22-2023, 03:32 PM)tgs Wrote: Smile Found a way to add it, they are using api to load page data using angular. will share code later after adding to WAR

Thanks Smile
Reply
#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
#7
thanks a lot, ill add it to the script and start testing it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)