|
169 | 169 | if(menu_value('menu_autoSignIn'))autoSignIn(); // 自动签到(访问空间 10 次 = 20 积分) |
170 | 170 |
|
171 | 171 |
|
172 | | - // 显示在线状态 |
173 | | - function onlineStatus() { |
174 | | - document.querySelectorAll('[id^="favatar"]').forEach(function(item){ // 遍历所有帖子 |
175 | | - let icon = (item.querySelector('[id^="userinfo"] > .i.y em').innerText === '当前在线') ? '🌝' : '🌚'; |
176 | | - let divStatus = document.createElement('div'); |
177 | | - divStatus.style = 'position: absolute;margin: -8px 0 0 8px;padding: 0 1px 1.2px;background-color: #ffffff;border-radius: 50%;'; |
178 | | - divStatus.innerText = icon; |
179 | | - let mochu = item.querySelector('.avatar'); |
180 | | - mochu.parentNode.insertBefore(divStatus,mochu); |
181 | | - }) |
182 | | - } |
183 | | - |
184 | 172 | // 自动签到(访问空间 10 次 = 20 积分) |
185 | 173 | function autoSignIn() { |
186 | 174 | if (!loginStatus) return |
|
374 | 362 | } |
375 | 363 |
|
376 | 364 |
|
377 | | - // 回到顶部(右键左右两侧空白处) |
| 365 | + // 快捷回到顶部(右键左右两侧空白处) |
378 | 366 | function backToTop() { |
379 | 367 | document.body.oncontextmenu = function(event){ |
380 | 368 | if (event.target==this) { |
|
385 | 373 | } |
386 | 374 |
|
387 | 375 |
|
388 | | - // 收起当前帖子预览(左键左右两侧空白处) |
| 376 | + // 收起帖子预览(左键左右两侧空白处) |
389 | 377 | function collapsedNowPost() { |
390 | | - //if (!menu_value('menu_collapsedNowAnswer')) return |
391 | 378 | document.body.onclick = function(event){ |
392 | 379 | if (event.target==this) { |
393 | 380 | document.querySelectorAll('[id^="threadPreviewTR_"] .showhide').forEach(function (el) { |
|
398 | 385 | } |
399 | 386 |
|
400 | 387 |
|
| 388 | + // 显示在线状态 |
| 389 | + function onlineStatus() { |
| 390 | + document.querySelectorAll('[id^="favatar"]').forEach(function(item){ // 遍历所有帖子 |
| 391 | + let icon = (item.querySelector('[id^="userinfo"] > .i.y em').innerText === '当前在线') ? '🌝' : '🌚'; |
| 392 | + let divStatus = document.createElement('div'); |
| 393 | + divStatus.style = 'position: absolute;margin: -8px 0 0 8px;padding: 0 1px 1.2px;background-color: #ffffff;border-radius: 50%;'; |
| 394 | + divStatus.innerText = icon; |
| 395 | + let mochu = item.querySelector('.avatar'); |
| 396 | + mochu.parentNode.insertBefore(divStatus,mochu); |
| 397 | + }) |
| 398 | + } |
| 399 | + |
| 400 | + |
401 | 401 | // 自动隐藏阅读权限 255 的帖子 |
402 | 402 | function delate255() { |
403 | 403 | if (patt_forum.test(location.pathname) || location.search.indexOf('mod=forumdisplay') > -1){ |
|
0 commit comments