mirror of
https://github.com/Alvin-Zilverstand/return-youtube-dislike.git
synced 2026-11-26 08:13:00 +01:00
Merge pull request #253 from KalinkaGit/main
Variable declaration and useless file
This commit is contained in:
9 files changed
+24
-19
No files matched your search
Whitespace-only changes.
@@ -18,7 +18,6 @@
|
||||
{
|
||||
"matches": ["*://*.youtube.com/*"],
|
||||
"exclude_matches": ["*://*.music.youtube.com/*"],
|
||||
"js": ["content-script.js"],
|
||||
"run_at": "document_idle",
|
||||
"css": ["content-style.css"]
|
||||
}
|
||||
|
||||
@@ -36,6 +36,7 @@ document.getElementById('link_yoomoney').addEventListener('click', () => {
|
||||
|
||||
|
||||
/* Advanced Toggle */
|
||||
/* Not currently used in this version
|
||||
const advancedToggle = document.getElementById('advancedToggle');
|
||||
advancedToggle.addEventListener('click', () => {
|
||||
const adv = document.getElementById('advancedSettings');
|
||||
@@ -49,7 +50,7 @@ advancedToggle.addEventListener('click', () => {
|
||||
config.advanced = true;
|
||||
}
|
||||
});
|
||||
|
||||
*/
|
||||
|
||||
|
||||
/* popup-script.js
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
const LIKED_STATE = "LIKED_STATE";
|
||||
const DISLIKED_STATE = "DISLIKED_STATE";
|
||||
const NEUTRAL_STATE = "NEUTRAL_STATE";
|
||||
var LIKED_STATE = "LIKED_STATE";
|
||||
var DISLIKED_STATE = "DISLIKED_STATE";
|
||||
var NEUTRAL_STATE = "NEUTRAL_STATE";
|
||||
|
||||
if (!storedData) {
|
||||
var storedData = {
|
||||
@@ -224,6 +224,7 @@ function numberFormat(numberState) {
|
||||
}
|
||||
|
||||
function setEventListeners(evt) {
|
||||
let jsInitChecktimer;
|
||||
function checkForJS_Finish() {
|
||||
if (getButtons()?.offsetParent && isVideoLoaded()) {
|
||||
clearInterval(jsInitChecktimer);
|
||||
@@ -252,12 +253,12 @@ function setEventListeners(evt) {
|
||||
}
|
||||
|
||||
if (window.location.href.indexOf("watch?") >= 0) {
|
||||
var jsInitChecktimer = setInterval(checkForJS_Finish, 111);
|
||||
jsInitChecktimer = setInterval(checkForJS_Finish, 111);
|
||||
}
|
||||
}
|
||||
|
||||
function createRateBar(likes, dislikes) {
|
||||
var rateBar = document.getElementById("return-youtube-dislike-bar-container");
|
||||
let rateBar = document.getElementById("return-youtube-dislike-bar-container");
|
||||
|
||||
const widthPx =
|
||||
getLikeButton().clientWidth +
|
||||
|
||||
Reference in new issue
Block a user