MCPcopy Create free account
hub / github.com/Useful-Scripts-Extension/useful-script / makeUI

Function makeUI

scripts/youtube_viewDislikes.js:35–44  ·  view source on GitHub ↗
(dislikeCount = 0)

Source from the content-addressed store, hash-verified

33 if (!btn) return;
34
35 function makeUI(dislikeCount = 0) {
36 let label = btn.querySelector(
37 ".yt-spec-button-shape-with-label__label span"
38 );
39 if (!label) return;
40 let text = numberFormat(dislikeCount);
41
42 // Kiểm tra và chỉ cập nhật nếu cần thiết
43 if (label.textContent != text) label.textContent = text;
44 }
45
46 let videoId = getVideoId();
47 getDislikeDataDebounced(videoId, (res) => {

Callers 2

listenShortFunction · 0.85
listenVideoFunction · 0.85

Calls 2

numberFormatFunction · 0.85
addMethod · 0.45

Tested by

no test coverage detected