From 72decf13df14728abf2b161e5f69d9b3b9d58525 Mon Sep 17 00:00:00 2001 From: Nipoto <128790947+ircfspace@users.noreply.github.com> Date: Thu, 6 Apr 2023 11:25:48 +0430 Subject: [PATCH] =?UTF-8?q?=D8=AA=D8=BA=DB=8C=DB=8C=D8=B1=20=D8=B1=D9=86?= =?UTF-8?q?=D8=AC=D9=87=D8=A7=DB=8C=20=D9=85=D8=AA=D8=AF=D8=A7=D9=88=D9=84?= =?UTF-8?q?=20=D8=A7=DB=8C=D8=B1=D8=A7=D9=86=D8=B3=D9=84=20=D9=88=20=D9=87?= =?UTF-8?q?=D9=85=D8=B1=D8=A7=D9=87=20=D8=A7=D9=88=D9=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/js/script.js | 11 ++++++++--- index.html | 6 +++--- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/assets/js/script.js b/assets/js/script.js index d3725af..6b248a2 100644 --- a/assets/js/script.js +++ b/assets/js/script.js @@ -102,7 +102,8 @@ async function testIPs(ipList, totalIp, timeout, betaVersion) { return acc; } }, []); - const sortedArr = uniqueArr.sort((a, b) => a.time - b.time); + let sortedArr = uniqueArr.sort((a, b) => a.time - b.time); + //sortedArr = sortedArr.slice(0, 50); const tableRows = sortedArr.map((obj, key) => { return `${(key+1)}${obj.ip}${numberWithCommas(obj.time)} میلی‌ثانیه` }).join('\n'); document.getElementById('result').innerHTML = tableRows; } @@ -228,7 +229,7 @@ $(document).on('change', '#forMtn', function(e) { let vl = options[i].value; if (vl === "") { continue; } if (typeof vl === "null") { continue; } - if ( ! vl.startsWith("45.", 0) ) { continue; } + if ( ! ['45.', '104.'].some((word) => vl.startsWith(word)) ) { continue; } cfIPv4.push(vl); } }); @@ -242,7 +243,7 @@ $(document).on('change', '#forMci', function(e) { let vl = options[i].value; if (vl === "") { continue; } if (typeof vl === "null") { continue; } - if ( ! ['108.', '23.', '45.', '63.', '66.', '104.', '141.', '147.', '159.', '172.', '185.', '188.', '195.'].some((word) => vl.startsWith(word)) ) { continue; } + if ( ! ['104.', '108.', '141.', '172.', '185.', '192.', '194.'].some((word) => vl.startsWith(word)) ) { continue; } cfIPv4.push(vl); } }); @@ -383,6 +384,10 @@ function getIpInfo(entry) { ipInfo['providerCode'] = 'apt'; ipInfo['providerName'] = 'آپتل'; } + else if ( data.includes('Didehban Net Company PJS') ) { + ipInfo['providerCode'] = 'dbn'; + ipInfo['providerName'] = 'دیده‌بان‌نت'; + } } provider = ipInfo['providerCode']; $('#providerName').html(ipInfo['providerName'].toUpperCase()); diff --git a/index.html b/index.html index 2e841af..922997d 100644 --- a/index.html +++ b/index.html @@ -14,7 +14,7 @@ - + @@ -70,9 +70,9 @@

اینترنت برای همه؛ یا هیچ‌کس!

-
+