mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-06 03:50:04 +02:00
This commit is contained in:
parent
24d0525f7d
commit
6bc607743f
4 changed files with 51 additions and 4 deletions
|
@ -4143,10 +4143,23 @@ function formatNumber(num) {
|
|||
} else if (num >= 1000000000000) {
|
||||
return (num / 1000000000000).toFixed(1) + 'T';
|
||||
} else {
|
||||
if(num==0){
|
||||
if (num == 0) {
|
||||
return '0';
|
||||
}else{
|
||||
} else {
|
||||
return num.toFixed(1).toString();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function findLargestCookies() {
|
||||
const allCookies = document.cookie.split(';').map(cookie => {
|
||||
const [name, value] = cookie.trim().split('=');
|
||||
return { name, size: value.length };
|
||||
});
|
||||
|
||||
const sortedCookies = allCookies.sort((a, b) => b.size - a.size).slice(0, 10);
|
||||
|
||||
console.log("Top 10 largest cookies:", sortedCookies);
|
||||
return sortedCookies;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue