MCPcopy Create free account
hub / github.com/dajie111/nodeseek-userscript / stopAutoSave

Function stopAutoSave

notes.js:1628–1642  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1626
1627 // 停止自动保存
1628 function stopAutoSave() {
1629 if (autoSaveTimer) {
1630 clearInterval(autoSaveTimer);
1631 autoSaveTimer = null;
1632 }
1633 // 清理可能存在的提示框
1634 const existingAutoSaveNotification = document.querySelector('.nsn-auto-save-notification');
1635 if (existingAutoSaveNotification) {
1636 existingAutoSaveNotification.remove();
1637 }
1638 const existingSaveNotification = document.querySelector('.nsn-save-notification');
1639 if (existingSaveNotification) {
1640 existingSaveNotification.remove();
1641 }
1642 }
1643
1644 // updateSaveState函数已移到全局作用域
1645

Callers 1

buildDialogFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected