Skip to content

Commit d333b9c

Browse files
committed
feat: correcption dislikes in short
1 parent e2ede20 commit d333b9c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

youtube_script_new_ui.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,15 +165,15 @@
165165
// dislikes shorts
166166
async function shortDislike() {
167167
validoUrl = document.location.href;
168-
const validoVentanaShort = $e(
168+
const validoVentanaShort = $m(
169169
'#dislike-button > yt-button-shape > label > div > span'
170170
);
171171
if (validoVentanaShort != undefined && document.location.href.split('/')[3] === 'shorts') {
172172
validoUrl = document.location.href.split('/')[4];
173173
const urlShorts = `${apiDislikes}${validoUrl}`;
174174
try {
175175
const respuesta = await fetch(urlShorts);
176-
const datosShort = await respuesta.json();
176+
const datosShort = await respuesta.json();
177177
const { dislikes } = datosShort;
178178
for (let i = 0; i < validoVentanaShort.length; i++) {
179179
validoVentanaShort[i].textContent = `${FormatterNumber(

0 commit comments

Comments
 (0)