Update Return Youtube Dislike.user.js

This commit is contained in:
evanreichard authored and GitHub committed 2021-12-13 13:03:26 -05:00
1 parent a7c8731564
commit 01df1d741b
1 file changed
+2 -2
@@ -358,10 +358,10 @@ function numberFormat(numberState) {
?.find((n) => n?.getAttribute("href")?.includes("?locale="))
?.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(
document.documentElement.lang || userLocales,
document.documentElement.lang || userLocales || navigator.language,
{
notation: "compact",
minimumFractionDigits: 1,