MCPcopy Create free account
hub / github.com/MALSync/MALSync / init

Function init

src/pages/MonosChinos/main.ts:84–101  ·  view source on GitHub ↗
(page)

Source from the content-addressed store, hash-verified

82 },
83 },
84 init(page) {
85 api.storage.addStyle(
86 require('!to-string-loader!css-loader!less-loader!./style.less').toString(),
87 );
88 j.$(document).ready(function () {
89 if (document.title.includes('MonosChinos - Anime sub español y latino')) {
90 con.error('404');
91 return;
92 }
93 if (page.url.split('/')[3] === 'ver' || page.url.split('/')[3] === 'anime') {
94 page.handlePage();
95 }
96 utils.waitUntilTrue(
97 () => MonosChinos.overview!.list!.elementsSelector().length > 0,
98 () => page.handleList(),
99 );
100 });
101 },
102};

Callers

nothing calls this directly

Calls 4

addStyleMethod · 0.80
errorMethod · 0.80
handlePageMethod · 0.80
handleListMethod · 0.80

Tested by

no test coverage detected