Code:
var id = "";
var username = "";
var country, flagurl = "";
fetch('https://cloudflare-quic.com/b/headers').then(res=>res.json()).then(data=>{let regionNames = new Intl.DisplayNames(['en'], {type: 'region'}); country = regionNames.of(data.headers['Cf-Ipcountry']); flagurl = "https://ip-api.io/images/flags/"+data.headers['Cf-Ipcountry'].toLowerCase()+".svg"; document.getElementById("flagos").src=flagurl;})
// $.getJSON("country.php", function (response) {
// var code = response["country"];
// let regionNames = new Intl.DisplayNames(['en'], {type: 'region'});
// country = regionNames.of(code);
// flagurl = "https://ip-api.io/images/flags/"+code.toLowerCase()+".svg";
// document.getElementById("flagos").src=flagurl;
//});
Hello, I got this script from somewhere and it used to work but not anymore.
Seems that this cloudflare-quic link is the thing that stopped it. https://cloudflare-quic.com/b/headers
Wayback machine has scraped this page many times in past, but I am unable to recover this file for now.
https://web.archive.org/web/20220000000000*/https://cloudflare-quic.com/b/headers
If anybody could help I would really appreciate. Thanks!