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

Function editQuickReply

quickReply.js:1380–1392  ·  view source on GitHub ↗
(category, oldText)

Source from the content-addressed store, hash-verified

1378
1379 // 编辑快捷回复
1380 function editQuickReply(category, oldText) {
1381 const newText = prompt('编辑快捷回复:', oldText);
1382 if (newText !== null && newText.trim() !== '' && newText !== oldText) {
1383 if (editReplyText(category, oldText, newText.trim())) {
1384 updateQuickReplyContent();
1385 if (window.addQuickReplyLog) {
1386 window.addQuickReplyLog(`编辑快捷回复: ${oldText} -> ${newText.trim()}`);
1387 }
1388 } else {
1389 alert('编辑失败,可能已存在相同回复');
1390 }
1391 }
1392 }
1393
1394 // 初始化内容
1395 updateQuickReplyContent();

Callers 1

updateQuickReplyContentFunction · 0.85

Calls 2

editReplyTextFunction · 0.85
updateQuickReplyContentFunction · 0.85

Tested by

no test coverage detected