()
| 1504 | |
| 1505 | // 完整显示时间 + 置顶显示时间 - 文章 |
| 1506 | function topTime_post() { |
| 1507 | let t = document.querySelector('.ContentItem-time:not(.xiu-time)'); if (!t) return |
| 1508 | // 完整显示时间 |
| 1509 | if (t.textContent.indexOf('编辑于') > -1 && !(t.classList.contains('xiu-time'))) { |
| 1510 | let tt = t.textContent; |
| 1511 | t.click(); |
| 1512 | t.textContent = (t.textContent + ' ,' + tt) |
| 1513 | t.classList.add('xiu-time'); |
| 1514 | } |
| 1515 | |
| 1516 | // 置顶显示时间 |
| 1517 | if (menu_value('menu_publishTop') && !(document.querySelector('.Post-Header > .ContentItem-time')) && !(document.querySelector('.ContentItem-meta > .ContentItem-time'))) { |
| 1518 | let temp_time = t.cloneNode(true); |
| 1519 | temp_time.style.padding = '0px'; |
| 1520 | document.querySelector('.Post-Header').insertAdjacentElement('beforeEnd', temp_time); |
| 1521 | } |
| 1522 | } |
| 1523 | |
| 1524 | |
| 1525 | // 完整显示时间 |
nothing calls this directly
no test coverage detected