mirror of
https://github.com/Alvin-Zilverstand/return-youtube-dislike.git
synced 2026-11-29 09:27:54 +01:00
Update Return Youtube Dislike.user.js
This commit is contained in:
1 parent
a7c8731564
commit
01df1d741b
1 file changed
+2
-2
@@ -358,10 +358,10 @@ function numberFormat(numberState) {
|
|||||||
?.find((n) => n?.getAttribute("href")?.includes("?locale="))
|
?.find((n) => n?.getAttribute("href")?.includes("?locale="))
|
||||||
?.getAttribute("href");
|
?.getAttribute("href");
|
||||||
|
|
||||||
const userLocales = localeURL ? new URL(localeURL)?.searchParams?.get("locale") : 'en';
|
const userLocales = localeURL ? new URL(localeURL)?.searchParams?.get("locale") : null;
|
||||||
|
|
||||||
const formatter = Intl.NumberFormat(
|
const formatter = Intl.NumberFormat(
|
||||||
document.documentElement.lang || userLocales,
|
document.documentElement.lang || userLocales || navigator.language,
|
||||||
{
|
{
|
||||||
notation: "compact",
|
notation: "compact",
|
||||||
minimumFractionDigits: 1,
|
minimumFractionDigits: 1,
|
||||||
|
|||||||
Reference in new issue
Block a user