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

Function topTime_publishTop

Zhihu-Enhanced.user.js:1538–1547  ·  view source on GitHub ↗
(t, _this, _class)

Source from the content-addressed store, hash-verified

1536
1537// 置顶显示时间
1538function topTime_publishTop(t, _this, _class) {
1539 if (!menu_value('menu_publishTop')) return
1540 if (!t.parentNode.classList.contains(_class)) {
1541 let temp_time = t.cloneNode(true);
1542 temp_time.style.padding = '0px';
1543 // 对于较短的回答,隐藏回答底部的时间
1544 if (_this.offsetHeight < 600) t.style.display = 'none';
1545 _this.querySelector('.' + _class).insertAdjacentElement('beforeEnd', temp_time);
1546 }
1547}
1548
1549
1550// 问题创建时间

Callers 1

topTime_Function · 0.85

Calls 1

menu_valueFunction · 0.70

Tested by

no test coverage detected