Reddit highlight newest comments

Highlights new comments in a thread since your last visit

< Commentaires sur Reddit highlight newest comments

Avis: Bon - le script fonctionne correctement

§
Posté le: 08/09/2014

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!

JonnyRobbieAuteur
§
Posté le: 13/09/2014

ok, thanks for noticing. fixed

Poster une réponse

Connectez-vous pour poster une réponse.

长期地址
遇到问题?请前往 GitHub 提 Issues,或加Q群1031348184

赞助商

Fishcpy

广告

Rainyun

注册一下就行

Rainyun

一年攒够 12 元