diff --git a/.github/ISSUE_TEMPLATE/bug.yml b/.github/ISSUE_TEMPLATE/bug.yml
new file mode 100644
index 0000000..f889936
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/bug.yml
@@ -0,0 +1,49 @@
+name: Bug Report
+description: File a bug report!
+title: "(Bug): "
+labels: ["bug"]
+body:
+- type: input
+ attributes:
+ label: Browser
+ description: Which browser are you using?
+ placeholder: "Example: Google Chrome"
+ validations:
+ required: true
+- type: input
+ attributes:
+ label: Browser Version
+ description: Which browser version are you using?
+ placeholder: "Example: Chromium v95"
+ validations:
+ required: true
+- type: dropdown
+ attributes:
+ label: "Extension or Userscript?"
+ options:
+ - Extension
+ - Userscript
+ validations:
+ required: true
+- type: input
+ attributes:
+ label: Extension/Userscript Version
+ description: Which extension/userscript version are you using?
+ placeholder: "Example: Version 0.0.0.1"
+ validations:
+ required: true
+- type: input
+ attributes:
+ label: Video link where you see the problem
+ description: Video link where you see the problem
+ placeholder: "Example: https://www.youtube.com/watch?v=s4-gMgdsnHQ"
+ validations:
+ required: true
+- type: textarea
+ attributes:
+ label: What happened?
+ description: Also tell us, what did you expect to happen?
+ placeholder: Tell us what you see!
+ value: "A bug happened!"
+ validations:
+ required: true
diff --git a/.github/ISSUE_TEMPLATE/feature-request.yml b/.github/ISSUE_TEMPLATE/feature-request.yml
new file mode 100644
index 0000000..b9a15d6
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/feature-request.yml
@@ -0,0 +1,31 @@
+name: Feature Request
+description: Request or suggest a new feature!
+title: "(Feature Request): "
+labels: ["enhancement"]
+body:
+- type: dropdown
+ attributes:
+ label: Extension or Userscript?
+ options:
+ - Extension
+ - Userscript
+ - Both
+ validations:
+ required: true
+- type: textarea
+ attributes:
+ label: Request or suggest a new feature!
+ placeholder: I want to suggest...
+ validations:
+ required: true
+- type: textarea
+ attributes:
+ label: Ways to implement this!
+ placeholder: We can implement it by...
+- type: checkboxes
+ attributes:
+ label: Can you work on this?
+ options:
+ - label: "Yes"
+ - label: "No"
+
diff --git a/Extensions/chrome/content-style.css b/Extensions/chrome/content-style.css
index 74a6c30..b613f6a 100644
--- a/Extensions/chrome/content-style.css
+++ b/Extensions/chrome/content-style.css
@@ -1,46 +1,26 @@
#return-youtube-dislike-bar-container {
- background: #c6c6c6;
+ background: var(--yt-spec-icon-disabled);
+ border-radius: 2px;
}
#return-youtube-dislike-bar {
- background: #5094c8;
-}
-
-[dark] #return-youtube-dislike-bar-container {
-}
-
-[dark] #return-youtube-dislike-bar {
- background: #3ea6ff;
+ background: var(--yt-spec-text-primary);
+ border-radius: 2px;
+ transition: all 0.15s ease-in-out;
}
.ryd-tooltip {
position: relative;
- display: inline-block;
- border-bottom: 1px dotted black; /* If you want dots under the hoverable text */
- cursor: pointer;
- height: 10px;
- margin-bottom: -5px;
+ display: block;
+ height: 2px;
+ top: 9px;
}
-/* Tooltip text */
-.ryd-tooltip .ryd-tooltiptext {
- visibility: hidden;
- width: 120px;
- background-color: #000000c4;
- color: #fff;
- text-align: center;
- padding: 5px 0;
- border-radius: 6px;
-
- /* Position the tooltip text - see examples below! */
+.ryd-tooltip-bar-container {
+ width: 100%;
+ height: 2px;
position: absolute;
- z-index: 1;
- bottom: 15px;
- left: 10px;
- font-size: 12px;
-}
-
-/* Show the tooltip text when you mouse over the tooltip container */
-.ryd-tooltip:hover .ryd-tooltiptext {
- visibility: visible;
+ padding-top: 6px;
+ padding-bottom: 28px;
+ top: -6px;
}
diff --git a/Extensions/chrome/script.js b/Extensions/chrome/script.js
index db2c8fc..a63dede 100644
--- a/Extensions/chrome/script.js
+++ b/Extensions/chrome/script.js
@@ -163,41 +163,47 @@
var rateBar = document.getElementById(
'return-youtube-dislike-bar-container'
);
+
const widthPx =
getButtons().children[0].clientWidth +
- getButtons().children[1].clientWidth;
+ getButtons().children[1].clientWidth +
+ 8;
const widthPercent =
likes + dislikes > 0 ? (likes / (likes + dislikes)) * 100 : 50;
if (!rateBar) {
- document.getElementById('menu-container').insertAdjacentHTML(
- 'beforeend',
+ document.getElementById("menu-container").insertAdjacentHTML(
+ "beforeend",
`
-
-`
+
+ `
);
} else {
document.getElementById(
- 'return-youtube-dislike-bar-container'
- ).style.width = widthPx + 'px';
- document.getElementById('return-youtube-dislike-bar').style.width =
- widthPercent + '%';
+ "return-youtube-dislike-bar-container"
+ ).style.width = widthPx + "px";
+ document.getElementById("return-youtube-dislike-bar").style.width =
+ widthPercent + "%";
- document.getElementById('ryd-dislike-tooltip').innerHTML = `${likes} / ${dislikes}`
+ document
+ .getElementById("ryd-dislike-tooltip")
+ .firstChild().innerHTML = `${likes.toLocaleString()} / ${dislikes.toLocaleString()}`;
}
}
diff --git a/Extensions/firefox/content-style.css b/Extensions/firefox/content-style.css
index 74a6c30..b613f6a 100644
--- a/Extensions/firefox/content-style.css
+++ b/Extensions/firefox/content-style.css
@@ -1,46 +1,26 @@
#return-youtube-dislike-bar-container {
- background: #c6c6c6;
+ background: var(--yt-spec-icon-disabled);
+ border-radius: 2px;
}
#return-youtube-dislike-bar {
- background: #5094c8;
-}
-
-[dark] #return-youtube-dislike-bar-container {
-}
-
-[dark] #return-youtube-dislike-bar {
- background: #3ea6ff;
+ background: var(--yt-spec-text-primary);
+ border-radius: 2px;
+ transition: all 0.15s ease-in-out;
}
.ryd-tooltip {
position: relative;
- display: inline-block;
- border-bottom: 1px dotted black; /* If you want dots under the hoverable text */
- cursor: pointer;
- height: 10px;
- margin-bottom: -5px;
+ display: block;
+ height: 2px;
+ top: 9px;
}
-/* Tooltip text */
-.ryd-tooltip .ryd-tooltiptext {
- visibility: hidden;
- width: 120px;
- background-color: #000000c4;
- color: #fff;
- text-align: center;
- padding: 5px 0;
- border-radius: 6px;
-
- /* Position the tooltip text - see examples below! */
+.ryd-tooltip-bar-container {
+ width: 100%;
+ height: 2px;
position: absolute;
- z-index: 1;
- bottom: 15px;
- left: 10px;
- font-size: 12px;
-}
-
-/* Show the tooltip text when you mouse over the tooltip container */
-.ryd-tooltip:hover .ryd-tooltiptext {
- visibility: visible;
+ padding-top: 6px;
+ padding-bottom: 28px;
+ top: -6px;
}
diff --git a/Extensions/firefox/script.js b/Extensions/firefox/script.js
index 1fce1f3..7955e0e 100644
--- a/Extensions/firefox/script.js
+++ b/Extensions/firefox/script.js
@@ -170,42 +170,48 @@ function setEventListeners(evt) {
function createRateBar(likes, dislikes) {
var rateBar = document.getElementById("return-youtube-dislike-bar-container");
+
const widthPx =
- getButtons().children[0].clientWidth + getButtons().children[1].clientWidth;
+ getButtons().children[0].clientWidth +
+ getButtons().children[1].clientWidth +
+ 8;
- const widthPercent =
- likes + dislikes > 0 ? (likes / (likes + dislikes)) * 100 : 50;
+ const widthPercent =
+ likes + dislikes > 0 ? (likes / (likes + dislikes)) * 100 : 50;
- if (!rateBar) {
- document.getElementById("menu-container").insertAdjacentHTML(
- "beforeend",
- `
-
-`
- );
- } else {
- document.getElementById(
- "return-youtube-dislike-bar-container"
- ).style.width = widthPx + "px";
- document.getElementById("return-youtube-dislike-bar").style.width =
- widthPercent + "%";
- document.getElementById(
- "ryd-dislike-tooltip"
- ).innerHTML = `${likes} / ${dislikes}`;
- }
+ document
+ .getElementById("ryd-dislike-tooltip")
+ .firstChild().innerHTML = `${likes.toLocaleString()} / ${dislikes.toLocaleString()}`;
+ }
}
// function sendVideoIds() {
diff --git a/README.md b/README.md
index 0a8eb8f..00b777f 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,11 @@
-[](https://github.com/Anarios/return-youtube-dislike/commits/main)
-[](https://github.com/Anarios/return-youtube-dislike/issues)
-[](https://github.com/Anarios/return-youtube-dislike/blob/main/LICENSE)
-[](https://addons.mozilla.org/en-US/firefox/addon/return-youtube-dislikes/)
+[](https://addons.mozilla.org/en-US/firefox/addon/return-youtube-dislikes/)
+[](https://addons.mozilla.org/en-US/firefox/addon/return-youtube-dislikes/)
+[](https://chrome.google.com/webstore/detail/youtube-dislike-button/gebbhagfogifgggkldgodflihgfeippi/)
+[](https://github.com/Anarios/return-youtube-dislike/commits/main)
+[](https://github.com/Anarios/return-youtube-dislike/issues)
+[](https://discord.gg/UMxyMmCgfF)
+[](https://github.com/Anarios/return-youtube-dislike/blob/main/LICENSE)
+
# Return YouTube Dislike
diff --git a/StaticSite/index.html b/StaticSite/index.html
index 3e172cf..d177298 100644
--- a/StaticSite/index.html
+++ b/StaticSite/index.html
@@ -151,7 +151,7 @@
Downloads:
- This is an ALHPA version! It may be slow. It may
+ This is an ALPHA version! It may be slow. It may
be buggy.