mirror of
https://github.com/Alvin-Zilverstand/return-youtube-dislike.git
synced 2026-11-26 08:13:00 +01:00
Merge branch 'Anarios:main' into main
This commit is contained in:
15 files changed
+122
-85
No files matched your search
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "Return Youtube Dislike",
|
||||
"name": "Return YouTube Dislike",
|
||||
"description": "Returns ability to see dislikes",
|
||||
"version": "0.0.0.9",
|
||||
"manifest_version": 2,
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -135,7 +135,8 @@ function isVideoLoaded() {
|
||||
|
||||
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);
|
||||
}
|
||||
@@ -149,7 +150,7 @@ function numberFormat(numberState) {
|
||||
maximumFractionDigits: 1
|
||||
});
|
||||
|
||||
return formatter.format(roundDown(numberState)).replace('.0', '');
|
||||
return formatter.format(roundDown(numberState)).replace(/\.0|,0/, '');
|
||||
}
|
||||
|
||||
function setEventListeners(evt) {
|
||||
|
||||
Reference in new issue
Block a user