MCPcopy Create free account
hub / github.com/Xu22Web/tech-study-js / handleNews

Function handleNews

tech-study.js:3960–3974  ·  view source on GitHub ↗

* @description 处理文章

()

Source from the content-addressed store, hash-verified

3958 * @description 处理文章
3959 */
3960async function handleNews() {
3961 // section
3962 const sections = await $_('section', undefined, 5000);
3963 const section = sections[0];
3964 if (!(section && section.innerText.includes('系统正在维护中'))) {
3965 // 文章选读
3966 reading(0);
3967 return;
3968 }
3969 log('未找到文章!');
3970 // 提示
3971 createTip('未找到文章!');
3972 // 关闭页面
3973 handleCloseTaskWin();
3974}
3975/**
3976 * @description 处理视频
3977 */

Callers 1

tech-study.jsFile · 0.70

Calls 5

$_Function · 0.70
readingFunction · 0.70
logFunction · 0.70
createTipFunction · 0.70
handleCloseTaskWinFunction · 0.70

Tested by

no test coverage detected