Highlights new comments in a thread since your last visit
< 腳本Reddit highlight newest comments的回應
Bug: Last visited time is not updated on refresh
Cause appears to be that Reddit comment URLs have changed. They now include the query parameters st and sh. IDK if they always appear in the same order. I was able to fix it by changing the commentReg regex to
st
sh
commentReg
commentReg = /^https?:\/\/(www\.)reddit\.com\/r\/[a-zA-Z0-9_-]+\/comments\/[0-9a-z]+\/[0-9a-z_]+\/(\?st|h)?.*$/;
It may also be necessary to update permalinkReg, but I wasn't sure what that part of the script was supposed to do.
permalinkReg
登入以回復
土豆服务器,请按需使用
镜像地址随时可能被墙,建议加群获取最新地址
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址
Bug: Last visited time is not updated on refresh
Cause appears to be that Reddit comment URLs have changed. They now include the query parameters
st
andsh
. IDK if they always appear in the same order. I was able to fix it by changing thecommentReg
regex toIt may also be necessary to update
permalinkReg
, but I wasn't sure what that part of the script was supposed to do.