mirror of
https://github.com/Alvin-Zilverstand/return-youtube-dislike.git
synced 2026-12-03 11:21:20 +01:00
Bugfixes, 2.0.0.1
This commit is contained in:
1 parent
c36a0ab58d
commit
d8ae9129dc
4 files changed
+56
-55
No files matched your search
@@ -1,27 +1,41 @@
|
|||||||
{
|
{
|
||||||
"name": "Return YouTube Dislike",
|
"name": "Return YouTube Dislike",
|
||||||
"description": "Returns ability to see dislikes",
|
"description": "Returns ability to see dislikes",
|
||||||
"version": "2.0.0.0",
|
"version": "2.0.0.1",
|
||||||
"manifest_version": 2,
|
"manifest_version": 3,
|
||||||
"background": {
|
"background": {
|
||||||
"scripts": ["ryd.background.js"]
|
"service_worker": "ryd.background.js"
|
||||||
},
|
},
|
||||||
"icons": {
|
"icons": {
|
||||||
"48": "icons/icon48.png",
|
"48": "icons/icon48.png",
|
||||||
"128": "icons/icon128.png"
|
"128": "icons/icon128.png"
|
||||||
},
|
},
|
||||||
"permissions": ["activeTab", "*://*.youtube.com/*", "storage"],
|
"host_permissions": ["*://*.youtube.com/*"],
|
||||||
"browser_action": {
|
"permissions": [
|
||||||
|
"storage"
|
||||||
|
],
|
||||||
|
"action": {
|
||||||
"default_popup": "popup.html"
|
"default_popup": "popup.html"
|
||||||
},
|
},
|
||||||
"content_scripts": [
|
"content_scripts": [
|
||||||
{
|
{
|
||||||
"matches": ["*://*.youtube.com/*"],
|
"matches": [
|
||||||
|
"*://youtube.com/*",
|
||||||
|
"*://www.youtube.com/*",
|
||||||
|
"*://m.youtube.com/*"
|
||||||
|
],
|
||||||
"exclude_matches": ["*://*.music.youtube.com/*"],
|
"exclude_matches": ["*://*.music.youtube.com/*"],
|
||||||
"run_at": "document_idle",
|
"js": ["ryd.content-script.js", "ryd.tools.js", "/init/init.js"],
|
||||||
"css": ["content-style.css"],
|
"css": ["content-style.css"]
|
||||||
"js": ["ryd.content-script.js", "ryd.tools.js", "/init/init.js"]
|
}
|
||||||
|
],
|
||||||
|
"externally_connectable": {
|
||||||
|
"matches": ["*://*.youtube.com/*"]
|
||||||
|
},
|
||||||
|
"web_accessible_resources": [
|
||||||
|
{
|
||||||
|
"resources": ["ryd.script.js"],
|
||||||
|
"matches": ["*://*.youtube.com/*"]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
{
|
||||||
|
"name": "Return YouTube Dislike",
|
||||||
|
"description": "Returns ability to see dislikes",
|
||||||
|
"version": "2.0.0.1",
|
||||||
|
"manifest_version": 2,
|
||||||
|
"background": {
|
||||||
|
"scripts": ["ryd.background.js"]
|
||||||
|
},
|
||||||
|
"icons": {
|
||||||
|
"48": "icons/icon48.png",
|
||||||
|
"128": "icons/icon128.png"
|
||||||
|
},
|
||||||
|
"permissions": ["activeTab", "*://*.youtube.com/*", "storage"],
|
||||||
|
"browser_action": {
|
||||||
|
"default_popup": "popup.html"
|
||||||
|
},
|
||||||
|
"content_scripts": [
|
||||||
|
{
|
||||||
|
"matches": ["*://*.youtube.com/*"],
|
||||||
|
"exclude_matches": ["*://*.music.youtube.com/*"],
|
||||||
|
"run_at": "document_idle",
|
||||||
|
"css": ["content-style.css"],
|
||||||
|
"js": ["ryd.content-script.js", "ryd.tools.js", "/init/init.js"]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
|
||||||
|
}
|
||||||
@@ -1,41 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "Return YouTube Dislike",
|
|
||||||
"description": "Returns ability to see dislikes",
|
|
||||||
"version": "2.0.0.0",
|
|
||||||
"manifest_version": 3,
|
|
||||||
"background": {
|
|
||||||
"service_worker": "ryd.background.js"
|
|
||||||
},
|
|
||||||
"icons": {
|
|
||||||
"48": "icons/icon48.png",
|
|
||||||
"128": "icons/icon128.png"
|
|
||||||
},
|
|
||||||
"host_permissions": ["*://*.youtube.com/*"],
|
|
||||||
"permissions": [
|
|
||||||
"storage"
|
|
||||||
],
|
|
||||||
"action": {
|
|
||||||
"default_popup": "popup.html"
|
|
||||||
},
|
|
||||||
"content_scripts": [
|
|
||||||
{
|
|
||||||
"matches": [
|
|
||||||
"*://youtube.com/*",
|
|
||||||
"*://www.youtube.com/*",
|
|
||||||
"*://m.youtube.com/*"
|
|
||||||
],
|
|
||||||
"exclude_matches": ["*://*.music.youtube.com/*"],
|
|
||||||
"js": ["ryd.content-script.js", "ryd.tools.js", "/init/init.js"],
|
|
||||||
"css": ["content-style.css"]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"externally_connectable": {
|
|
||||||
"matches": ["*://*.youtube.com/*"]
|
|
||||||
},
|
|
||||||
"web_accessible_resources": [
|
|
||||||
{
|
|
||||||
"resources": ["ryd.script.js"],
|
|
||||||
"matches": ["*://*.youtube.com/*"]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -99,7 +99,7 @@ function RYD() {
|
|||||||
|
|
||||||
//--- Sets The Likes And Dislikes Values ---//
|
//--- Sets The Likes And Dislikes Values ---//
|
||||||
function setLikes(likesCount) {
|
function setLikes(likesCount) {
|
||||||
getButtons().children[0].querySelector("#text").innerText = likesCount;
|
(getButtons().children[0].querySelector("#text")).innerText = likesCount;
|
||||||
}
|
}
|
||||||
|
|
||||||
function setDislikes(dislikesCount) {
|
function setDislikes(dislikesCount) {
|
||||||
@@ -109,7 +109,7 @@ function RYD() {
|
|||||||
).innerText = dislikesCount;
|
).innerText = dislikesCount;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
getButtons().children[1].querySelector("#text").innerText = dislikesCount;
|
(getButtons().children[1].querySelector("#text").innerText) = dislikesCount;
|
||||||
}
|
}
|
||||||
|
|
||||||
function getLikeCountFromButton() {
|
function getLikeCountFromButton() {
|
||||||
@@ -148,7 +148,8 @@ function RYD() {
|
|||||||
if (
|
if (
|
||||||
"likes" in response &&
|
"likes" in response &&
|
||||||
"dislikes" in response &&
|
"dislikes" in response &&
|
||||||
response.dislikes !== null
|
response.dislikes !== null &&
|
||||||
|
!Number.isNaN(response.dislikes)
|
||||||
) {
|
) {
|
||||||
processResponse(response);
|
processResponse(response);
|
||||||
statsSet = true;
|
statsSet = true;
|
||||||
|
|||||||
Reference in new issue
Block a user