mirror of
https://github.com/Alvin-Zilverstand/return-youtube-dislike.git
synced 2026-11-24 15:23:02 +01:00
Firefox extension added
This commit is contained in:
1 parent
fee434e6b6
commit
ac8d83e41f
10 files changed
+236
-15
No files matched your search
@@ -1,26 +1,19 @@
|
||||
{
|
||||
"name": "Youtube Dislike Button",
|
||||
"description": "Returns ability to see dislikes",
|
||||
"version": "0.0.0.1",
|
||||
"version": "0.0.0.2",
|
||||
"manifest_version": 3,
|
||||
"background": {
|
||||
"service_worker": "background.js"
|
||||
},
|
||||
"permissions": [
|
||||
"activeTab",
|
||||
"scripting"
|
||||
],
|
||||
"host_permissions": [
|
||||
"*://*.youtube.com/*"
|
||||
],
|
||||
"permissions": ["activeTab", "scripting"],
|
||||
"host_permissions": ["*://*.youtube.com/*"],
|
||||
"action": {
|
||||
"default_popup": "popup.html"
|
||||
},
|
||||
"oauth2": {
|
||||
"client_id": "292556337651-kbmq2pduaejrol457a5s1089ut6ug0u9.apps.googleusercontent.com",
|
||||
"scopes": [
|
||||
"openid"
|
||||
]
|
||||
"scopes": ["openid"]
|
||||
},
|
||||
"content_scripts": [
|
||||
{
|
||||
@@ -28,6 +21,5 @@
|
||||
"js": ["content-script.js"],
|
||||
"run_at": "document_idle"
|
||||
}
|
||||
],
|
||||
"key": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAiHSM4q3Ti5gb2j6lfOwlNvrl0IGtIVOdZZNckjd15gAZh5oo9BfO1QwqJQD39KdiyELCfTduxcDeQM5RLZ6V59iK5Lt04edFS6hF7gYrB5TMQ7pgFLetT4EUgZusu9PgApU11ZWrS+VfL/2XIcIGMdpBQ1rq7X6s7ffWoQzQiQhjZUoNaCMvyI0iCEH7RS4qylV5el80kH6RyUXCDFoo1zr06BiZOj65fALgbUmiz1RstI5/bsCgA44DHXonA7d/dvc5jWvXEuZdNWvuvYdpPPxGebSEktn0+waI+VXV5vggsTfILerIsKNb6rwTlujB6Ke98cKhIF3wGqUuvwdV6wIDAQAB"
|
||||
]
|
||||
}
|
||||
@@ -58,7 +58,7 @@ function setState() {
|
||||
const formattedDislike = numberFormat(response.dislikes);
|
||||
// setLikes(response.likes);
|
||||
console.log(response);
|
||||
setDislikes(response.dislikes);
|
||||
setDislikes(formattedDislike);
|
||||
} else {
|
||||
}
|
||||
}
|
||||
@@ -94,7 +94,7 @@ function isVideoLoaded() {
|
||||
|
||||
function numberFormat(numberState) {
|
||||
const userLocales = navigator.language;
|
||||
const formatter = Intl.NumberFormat(userLocales, { notation: 'compact' });
|
||||
const formatter = Intl.NumberFormat(userLocales, { notation: "compact" });
|
||||
return formatter.format(numberState);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user