MCPcopy
hub / github.com/ocsjs/ocsjs / hasStudyTimeWarnDialog

Function hasStudyTimeWarnDialog

packages/scripts/src/projects/zhs.ts:1735–1739  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1733 };
1734
1735 const hasStudyTimeWarnDialog = () => {
1736 return !!Array.from(document.querySelectorAll('.el-overlay .content')).find((el) =>
1737 el.textContent?.includes('保持良好的学习习惯')
1738 );
1739 };
1740
1741 const closeStudyTimeWarnDialog = () => {
1742 return new Promise<void>((resolve, reject) => {

Callers 1

nextFunction · 0.85

Calls 1

fromMethod · 0.80

Tested by

no test coverage detected