Merge branch 'Anarios:main' into main

This commit is contained in:
Front authored and GitHub committed 2021-12-01 16:48:39 -05:00
commit 39b9f1349d
15 files changed
+122 -85

No files matched your search

+3 -3
View File
@@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta content="text/html; charset=utf-8">
<title>Return Youtube Dislike</title>
<title>Return YouTube Dislike</title>
<link rel="stylesheet" href="popup.css">
</head>
<body>
@@ -10,11 +10,11 @@
<center>
<img src="icons/icon48.png" alt="Logo" />
<h1>Return Youtube Dislike</h1>
<h1>Return YouTube Dislike</h1>
<p>by Dmitrii Selivanov & Community</p>
<button id="link_website">Website</button>
<button id="link_github">Github</button>
<button id="link_github">GitHub</button>
<button id="link_discord">Discord</button>
<br>
@@ -139,7 +139,8 @@
function roundDown(num) {
if (num < 1000) return num;
const decimal = Math.floor(Math.log10(num) - 1);
const int = Math.floor(Math.log10(num) - 2);
const decimal = int + (int % 3 ? 1 : 0);
const value = Math.floor(num / 10 ** decimal);
return value * (10 ** decimal);
}
@@ -153,7 +154,7 @@
maximumFractionDigits: 1
});
return formatter.format(roundDown(numberState)).replace('.0', '');
return formatter.format(roundDown(numberState)).replace(/\.0|,0/, '');
}
var jsInitChecktimer = null;