Reddit highlight newest comments

Highlights new comments in a thread since your last visit

< 腳本Reddit highlight newest comments的回應

評論:正評 - 腳本一切正常

§
發表於:2014-09-08

Subreddits with Alphanumeric Characters

Can you please add support for subreddits with alphanumeric characters. For example: http://www.reddit.com/r/moto360

I was able to fix this by simply changing this line of code (line 101):
commentReg = /^https?:\/\/(www\.)reddit\.com\/r\/[a-zA-Z]+\/comments\/[0-9a-z]+\/[0-9a-z_]+\/$/;

To:
commentReg = /^https?:\/\/(www\.)reddit\.com\/r\/[a-zA-Z0-9]+\/comments\/[0-9a-z]+\/[0-9a-z_]+\/$/;

Thank you very much for writing this script. I just discovered it recently and now i use it every day!

JonnyRobbie作者
§
發表於:2014-09-13

ok, thanks for noticing. fixed

發表回覆

登入以回復

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址