你正在訪問的內容是外部程式的映像位址,僅用於使用者加速訪問,本站無法保證其可靠性。當前的連結位址(單點即可複製)為 https://greasyfork.org.cn/zh-CN/scripts/1868-reddit-highlight-newest-comments/discussions/12189,源站連結 點此以跳轉

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

发布留言

登录以发布留言。