MCPcopy Create free account
hub / github.com/Moli-X/Resources / isVideo

Function isVideo

Script/ADYouTube.js:105–115  ·  view source on GitHub ↗
(o)

Source from the content-addressed store, hash-verified

103}
104
105function isVideo(o) {
106 let flag = true;
107 if (o?.n7F157152291 || o?.n6F62887855 || o?.n6F166487981) flag = false;
108 else {
109 let type = parseEml(o?.n6F153515154?.n7F172660663) || parseEml(o?.n6F153515154?.n7F172660663?.n8F3);
110 if (/_ads?\.|ads?_|video_display_full|landscape_image|square_image|shorts|shelf_header/.test(type)) flag = false;
111 if (flag && !/cell_divider|_video|comment_thread/.test(type)) console.log(type); // 用于排查遗留的广告类型
112 }
113 if (!flag) needProcessFlag = true;
114 return flag;
115}
116
117function isNotUpload(o) {
118 let isUpload = o?.g4F318370163;

Callers 1

removeAdFunction · 0.85

Calls 2

parseEmlFunction · 0.85
logMethod · 0.45

Tested by

no test coverage detected