Skip to content
This repository has been archived by the owner on Jul 19, 2024. It is now read-only.

Commit

Permalink
🐛 修复用户框会覆盖顶栏不隐藏的 Bug;修复奥的灰烬推荐也会出现用户 ID 的 Bug
Browse files Browse the repository at this point in the history
见 issue #3 和 issue #4
  • Loading branch information
waterblock79 committed May 28, 2022
1 parent 1878f5f commit 79567b4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions aerfaying-explore.user.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
// ==UserScript==
// @name 高效探索 - 阿儿法营/稽木世界社区优化插件
// @namespace https://waterblock79.github.io/
// @version 0.1.2
// @version 0.1.4
// @description 提供优化、补丁及小功能提升社区内的探索效率和用户体验
// @author waterblock79
// @updateURL https://github.com/waterblock79/aerfaying-explore/raw/main/aerfaying-explore.user.js
// @match http*://gitblock.cn/*
// @match http*://aerfaying.com/*
// @match http*://3eworld.cn/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=gitblock.cn
// @grant none
// @license MIT
Expand Down Expand Up @@ -45,10 +46,11 @@
let comments = document.querySelectorAll('.comment_comment_P_hgY');
for( let i = 0; i < comments.length; i++ ) {
comments[i].querySelector('.comment_time_3A6Cg').innerHTML +=
comments[i].querySelector('.comment_time_3A6Cg').innerHTML.includes('#') || localStorage.getItem('explore:comment_id') == 0 ?
comments[i].querySelector('.comment_time_3A6Cg').innerHTML.includes('#') || localStorage.getItem('explore:comment_id') == 0 || comments[i].id == '' ?
`` : ` <span onclick="window.showCommentInfo('${ comments[i].id }')"> #${comments[i].id} </span>`
}
},1000)
document.querySelector('.menu-bar_topnav_3HgyJ').style.zIndex = 999999999
//
// === 用户信息显示 ===
if(location.pathname.match(/\/Users\/(\w+\/?)/g) != null) { // 若链接匹配 /Users/NUMBER/ 或 /Users/NUMBER
Expand Down

0 comments on commit 79567b4

Please sign in to comment.