reddit-moderator-toolbox-legacy icon indicating copy to clipboard operation
reddit-moderator-toolbox-legacy copied to clipboard

option to ignore self.subreddit posts for domain % highlighting

Open naxian opened this issue 10 years ago • 5 comments

I love the new yellow/red highlighting for the user domain submission history. It would be handy though if we could have the option to not highlight self.subreddit domains.

Thanks!

naxian avatar Jul 25 '15 02:07 naxian

I doubt we will make it optional. But if I can do it in a simple way I will just disable it for self.posts. But my question is do we also ignore reddit.com as a domain? IE: meta and spam link submissions.

agentlame avatar Jul 25 '15 02:07 agentlame

My vote is for optional, it still is handy to see what percentage of someones posts are self posts.

If someone makes a 100 perfectly fine selfposts and only two link submissions that happen to be to the same domain the percentage will be off when not including self posts.

creesch avatar Jul 27 '15 08:07 creesch

If someone makes a 100 perfectly fine selfposts and only two link submissions that happen to be to the same domain the percentage will be off when not including self posts.

But that would affect highlighting, if I'm understanding correctly.

agentlame avatar Jul 27 '15 21:07 agentlame

Hrm, I just reread the thing. Just disable the coloring. I am ok with that.

creesch avatar Jul 28 '15 05:07 creesch

Looks like a pretty easy fix if all we want to do is not set a background color for selfpost domains no matter what. Just replace this:

if (percentage >= 10 && domainCount > 4){

With this:

if (percentage >= 10 && domainCount > 4 && !match) {

https://github.com/creesch/reddit-moderator-toolbox/blob/master/extension/data/modules/historybutton.js#L492

(side note, match could also use a rename to something more descriptive, which I'd do at the same time)

eritbh avatar Aug 08 '17 16:08 eritbh