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

Function mapItems

Script/ADYouTube.js:86–95  ·  view source on GitHub ↗
(itemList, isBanner = false)

Source from the content-addressed store, hash-verified

84}
85
86function mapItems(itemList, isBanner = false) {
87 itemList?.forEach?.((ie) => {
88 if (isBanner) {
89 removeBanner(ie?.g2F117866661);
90 } else {
91 removeAd(ie?.n4F50195462);
92 removeAd(ie?.n4F51845067?.n5F5?.n6F51431404);
93 }
94 });
95}
96
97function removeAd(itemObject) {
98 if (itemObject?.n5F1) itemObject.n5F1 = itemObject.n5F1?.filter((o) => isVideo(o));

Callers 1

ADYouTube.jsFile · 0.85

Calls 2

removeBannerFunction · 0.85
removeAdFunction · 0.85

Tested by

no test coverage detected