honestbleeps / Reddit-Enhancement-Suite

Reddit Enhancement Suite
http://redditenhancementsuite.com
GNU General Public License v3.0
4.09k stars 878 forks source link

Integrate RedditUsernameHider #3967

Open jewel-andraia opened 7 years ago

jewel-andraia commented 7 years ago

https://github.com/mjkersey/RedditUsernameHider/blob/master/files/redditblur.js https://www.reddit.com/r/Enhancement/comments/5rpqc9/feature_request_anonymizer_buttonlinkwidget_for/dd970nv/ @mjkersey

mjkersey commented 7 years ago

Cool, thanks for the mention.

Lemme know if I can help with anything. I didn't get a super great look at the reddit DOM hierarchy, but basing it on parent tags and classes seems to work. There are a few configurable options, but I'm not sure how it would all hook into RES config options.

As it stands, it's in dire need of optimization in its current state, but you should be able to see how it works, at least.

lhofmann commented 7 years ago

Should this be integrated into the existing usernameHider module or made a separate module?

mjkersey commented 7 years ago

I'll have to defer to you RES guys on that one. @andytuba would probably know best, being a collaborator (I've just provided the PoC, really), but it does share some purpose with the usernameHider. It just acts on all usernames on a page, including the account that's currently logged in.