Skip to content

Instantly share code, notes, and snippets.

@UCyborg
Last active December 15, 2021 22:46
Show Gist options
  • Save UCyborg/ad57630260a08f71701be75f7d60aed6 to your computer and use it in GitHub Desktop.
Save UCyborg/ad57630260a08f71701be75f7d60aed6 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name YouTube exact (DIS)like counter
// @namespace https://github.com/UCyborg
// @version 0.5.2
// @description Replaces rounded video (dis)like counters on YouTube with non-rounded ones, based off https://www.returnyoutubedislike.com/
// @author Anarios & JRWR & UCyborg
// @icon data:image/x-icon;base64,AAABAAEAICAAAAEAIACoEAAAFgAAACgAAAAgAAAAQAAAAAEAIAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAbAAAAFQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA///////////////////////////////////////////////////////////////////4A/////////gB////////8AD////////gAH///////+AAH///////4AAf///////gAA///////+AAB///////4AAH///////gAAH///////AQAP//////8AgAf//////wDAA///////gPAB//////+AeAH//////4B4AH//////gDwAf/////+APgA//////4A/AB////wAAB+AAAP/8AAAH8AAA//gAAAf4AAD/8AAAB/gAAP/wAAAH/AAA//AAAAf+AAD/8A////4DgP/wH////gOA//AP///+A4D/8A////4DgP/wD////gOA//AP///+A4D/+A////4DgP/4D////gOA//gP///+A4D/+Af///4DgP/8B////gOA//wH///+A4D//Af///4DgP/+A////gOA//4D///+A4D//gP///4DgP/+Af///gOA//4A///+A4D//wAAAAAAAP//AAAAAAAA//8AAAAAAAD//wAAAAAAAP//gAAAAAAA///gAAAAAAD////////////////////////////////////////////////////////////////////////////////////////////////8=
// @downloadURL https://gist.github.com/UCyborg/ad57630260a08f71701be75f7d60aed6/raw/YouTube_exact_(DIS)like_counter.user.js
// @include /https:\/\/www\.youtube\.com\/(?!embed\/.*$)/
// @grant none
// ==/UserScript==
"use strict";
const logLevel_log = 1;
const logLevel_info = 2;
const logLevel_warn = 3;
const logLevel_error = 4;
const console_hasDebug = (typeof console.debug === 'function') ? true : false;
const logLevel_debug = 5;
const LIKED_STATE = 1;
const DISLIKED_STATE = 2;
const NEUTRAL_STATE = 3;
var previousState = NEUTRAL_STATE;
var likesValue = 0;
var dislikesValue = 0;
function cLog(level, text, subtext = '') {
const prefix = `[YouTube (DIS)likes]`;
subtext = subtext.trim() === '' ? '' : `(${subtext})`;
switch (level) {
case logLevel_log:
console.log(`${prefix} ${text} ${subtext}`);
break;
case logLevel_info:
console.info(`${prefix} ${text} ${subtext}`);
break;
case logLevel_warn:
console.warn(`${prefix} ${text} ${subtext}`);
break;
case logLevel_error:
console.error(`${prefix} ${text} ${subtext}`);
break;
case logLevel_debug:
console_hasDebug ?
console.debug(`${prefix} ${text} ${subtext}`) :
console.log(`${prefix} ${text} ${subtext}`);
}
}
function getButtons() {
const buttons = document.getElementById("menu-container");
if (!buttons || !buttons.offsetParent) {
return document.querySelector("ytd-menu-renderer.ytd-watch-metadata > div");
} else {
return buttons ? buttons.querySelector("#top-level-buttons-computed") : null;
}
}
function getLikeButton() {
return getButtons().children[0];
}
function getDislikeButton() {
return getButtons().children[1];
}
function isVideoLiked() {
return getLikeButton().classList.contains("style-default-active");
}
function isVideoDisliked() {
return getDislikeButton().classList.contains("style-default-active");
}
function isVideoNotLiked() {
return getLikeButton().classList.contains("style-text");
}
function isVideoNotDisliked() {
return getDislikeButton().classList.contains("style-text");
}
function checkForUserAvatarButton() {
return document.querySelector("#avatar-btn") ? true : false;
}
function getState() {
if (isVideoLiked()) {
return LIKED_STATE;
}
if (isVideoDisliked()) {
return DISLIKED_STATE;
}
return NEUTRAL_STATE;
}
function setLikes(likesCount) {
getLikeButton().querySelector("#text").innerText = likesCount;
}
function setDislikes(dislikesCount) {
getDislikeButton().querySelector("#text").innerText = dislikesCount;
}
function setState() {
const videoId = getVideoId();
function getAndProcessVideosStatsFromAltAPI() {
fetch(`https://returnyoutubedislikeapi.com/votes?videoId=${videoId}`).then((response) => {
response.json().then((json) => {
if (!('traceId' in response)) {
const { likes, dislikes } = json;
cLog(logLevel_info, `Received like count (alt API): ${likes}`);
cLog(logLevel_info, `Received dislike count (alt API): ${dislikes}`);
setDislikes(numberFormat(dislikes));
dislikesValue = dislikes;
}
})
.catch(error => {
cLog(logLevel_error, `Fetching video stats from alt API failed: ${error}`);
})
});
}
function getAndProcessVideosStatsFromYT() {
fetch(`https://www.youtube.com/watch?v=${videoId}`).then((response) => {
response.text().then((text) => {
const result = getStatsFromYoutubeResponse(text);
cLog(logLevel_debug, 'Response from YouTube:');
cLog(logLevel_debug, JSON.stringify(result));
cLog(logLevel_info, `Received like count: ${result.likes}`);
setLikes(numberFormat(result.likes));
likesValue = result.likes;
if (!Number.isNaN(result.dislikes)) {
cLog(logLevel_info, `Received dislike count: ${result.dislikes}`);
setDislikes(numberFormat(result.dislikes));
dislikesValue = result.dislikes;
} else {
getAndProcessVideosStatsFromAltAPI();
}
})
.catch(error => {
cLog(logLevel_error, `Fetching video stats from YouTube failed: ${error}`);
getAndProcessVideosStatsFromAltAPI();
})
});
}
cLog(logLevel_log, 'Fetching votes...');
getAndProcessVideosStatsFromYT();
}
function likeClicked() {
if (checkForUserAvatarButton()) {
if (previousState == LIKED_STATE) {
likesValue--;
setDislikes(numberFormat(dislikesValue));
previousState = NEUTRAL_STATE;
} else if (previousState == DISLIKED_STATE) {
likesValue++;
setDislikes(numberFormat(--dislikesValue));
previousState = LIKED_STATE;
} else if (previousState == NEUTRAL_STATE) {
likesValue++;
previousState = LIKED_STATE;
}
}
}
function dislikeClicked() {
if (checkForUserAvatarButton()) {
if (previousState == NEUTRAL_STATE) {
setDislikes(numberFormat(++dislikesValue));
previousState = DISLIKED_STATE;
} else if (previousState == DISLIKED_STATE) {
setDislikes(numberFormat(--dislikesValue));
previousState = NEUTRAL_STATE;
} else if (previousState == LIKED_STATE) {
likesValue--;
setDislikes(numberFormat(++dislikesValue));
previousState = DISLIKED_STATE;
}
}
}
function getVideoId() {
const urlObject = new URL(window.location.href);
const pathname = urlObject.pathname;
if (pathname.startsWith('/clips')) {
return document.querySelector("meta[itemprop='videoId']").content;
} else {
return urlObject.searchParams.get('v');
}
}
function isVideoLoaded() {
const videoId = getVideoId();
return (document.querySelector(`ytd-watch-flexy[video-id='${videoId}']`) !== null);
}
function numberFormat(numberState) {
return Intl.NumberFormat().format(numberState);
}
function getStatsFromYoutubeResponse(htmlResponse) {
let start = htmlResponse.indexOf('"videoDetails":') + '"videoDetails":'.length;
let end = htmlResponse.indexOf('"isLiveContent":false}', start) + '"isLiveContent":false}'.length;
if (end < start) {
end = htmlResponse.indexOf('"isLiveContent":true}', start) + '"isLiveContent":true}'.length;
}
const jsonStr = htmlResponse.substring(start, end);
const jsonResult = JSON.parse(jsonStr);
const rating = jsonResult.averageRating;
start = htmlResponse.indexOf('"topLevelButtons":[', end);
start = htmlResponse.indexOf('"accessibilityData":', start) + '"accessibilityData":'.length;
end = htmlResponse.indexOf('}', start);
const likes = +htmlResponse.substring(start, end).replace(/\D/g, '');
const dislikes = (likes * (5 - rating)) / (rating - 1);
const result = {
likes,
dislikes: Math.round(dislikes),
rating,
viewCount: +jsonResult.viewCount,
};
return result;
}
function setEventListeners(evt) {
function checkForJS_Finish() {
cLog(logLevel_debug, 'checkForJS_Finish() IN');
const buttons = getButtons();
if (buttons && buttons.offsetParent && isVideoLoaded()) {
clearInterval(jsInitChecktimer);
if (!window.returnDislikeButtonlistenersSet) {
cLog(logLevel_log, 'Registering button listeners...');
buttons.children[0].addEventListener("click", likeClicked);
buttons.children[1].addEventListener("click", dislikeClicked);
window.returnDislikeButtonlistenersSet = true;
}
setState();
}
cLog(logLevel_debug, 'checkForJS_Finish() OUT');
}
if (window.location.href.indexOf('watch?') >= 0) {
cLog(logLevel_log, 'Setting up...');
var jsInitChecktimer = setInterval(checkForJS_Finish, 1500);
}
}
(function() {
window.addEventListener("yt-navigate-finish", setEventListeners, true);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment