UserScripts Archive
fikper.com links - 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: fikper.com links (/showthread.php?tid=535)



fikper.com links - tgs - 02-17-2023

Can you add this host?

Code:
https://fikper.com/Uoulnj18yT/Driver_Talent_Pro_8.1.3.14.rar.html



RE: fikper.com links - mental - 02-18-2023

Sorry i can not get that host to check links


RE: fikper.com links - tgs - 02-19-2023

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


RE: fikper.com links - tgs - 02-22-2023

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


RE: fikper.com links - mental - 02-22-2023

(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


RE: fikper.com links - tgs - 02-23-2023

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



RE: fikper.com links - mental - 02-24-2023

thanks a lot, ill add it to the script and start testing it.