MCPcopy Create free account
hub / github.com/XIU2/UserScript / replyCustom_2

Function replyCustom_2

Hostloc-Enhanced.user.js:391–395  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

389 document.querySelector('#fastposteditor .fbld').insertAdjacentHTML('afterend', `<a href="javascript:;" title="点击给选中文字添加 url 标签(可正常显示为 URL)" class="flnk" style="filter: hue-rotate(83deg);" onclick="seditor_insertunit('post', '[url][i]', '[/i][/url]');doane(event);">URL</a>`);
390 }
391 function replyCustom_2() { // 帖子底部的回复框
392 document.getElementById('fastpostsubmit').onclick = function () {
393 if (GM_getValue('menu_customLittleTail')) document.getElementById('fastpostmessage').value += GM_getValue('menu_customLittleTail').replaceAll('\\n', '\n');
394 }
395 }
396 function replyCustom_3() {
397 let postsubmit = document.getElementById('postsubmit');
398 if (postsubmit && postsubmit.textContent === '\n参与/回复主题\n' || postsubmit && postsubmit.textContent === '\n发表帖子\n') {

Callers 1

replyCustomFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected