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

Function run

scripts/youtube_viewDislikes.js:107–114  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

105 }
106
107 function run() {
108 // Xóa tất cả listeners trước đó
109 listeners.forEach((fn) => fn?.());
110 listeners = []; // Reset listeners array sau khi xóa
111
112 if (isShorts()) listeners.push(listenShort());
113 else listeners.push(listenVideo());
114 }
115
116 window.onload = () => {
117 run();

Callers 1

Calls 4

listenShortFunction · 0.85
listenVideoFunction · 0.85
isShortsFunction · 0.70
fnFunction · 0.50

Tested by

no test coverage detected