Light_Quanta
Light_Quanta
> 这个能获取到总的评论列表数据, 但如何将单独的评论元素和数据对应起来呢? (现在元素上还是不知道怎么取 id) 看了下,每一个`.reply-item`下的`.root-reply-container`里的`.root-reply-avatar`元素上有属性`data-root-reply-id`,里面的值能和评论属性上的`rpid`和`rpid_str`对上,用这个应该可以? 分别可以用`document.querySelector(".comment").__vue_app__._context.provides.store._state.data.apiData.replyList.res.data.replies[*].rpid_str` 和 `document.querySelectorAll(".reply-item")[*].querySelector(".root-reply-avatar").dataset.rootReplyId` 来获取
经测试是b站的评论区相关代码更改导致的,无法获取评论元素之前使用的`__vueParentComponent`属性(参考 #4690 ),导致[comment-apis.ts](https://github.com/the1812/Bilibili-Evolved/blob/8a4e422612a7bd0b42da9aa50c21c7bf3ea401b8/src/components/utils/comment-apis.ts)里的代码失效(IP属地显示依赖此文件),并不是由于B站API接口数据结构变化导致的 目前IP属地显示依然生效的是旧版评论区相关界面 使用新的获取方法可以重新获取评论相关数据,等更新吧
This problem appears to be related to URL parsing on Windows. When tested on Node Cli, `new URL()` does not parse some URLs with Windows file paths. For example, `ws+unix://C:\\some\\folder`...
> @Jarred-Sumner I replaced the `\\` with `/` (in `adapter.ts`, `debug.ts` and `signal.ts`) and URL parse error is gone e.g. instead of `ws+unix://C:\\Users\\myusername` it is now `ws+unix://C:/Users/myusername`. > > The...