[bug]Faded "duplicate" posts are rarely ever duplicates

This isn't a big deal, but it's been happening so long (several months at least) I figured I'd say something. In neverending reddit, occasionally posts are faded out and next to them it says "duplicate from previous page". When this happens, the posts are never actually duplicates. It gets slightly annoying when it happens with image posts, because expanding the image inline gives a very faded image so I have to open it in another tab to see it. I also never get this for actual duplicate posts.

I have adblock, google docs, RES, speed dial 2, and turkopticon installed

here is an example of a normal post and a faded post

  • Night mode: false
  • RES Version: 4.6.1
  • Browser: Chrome
  • Browser Version: 49
  • Cookies Enabled: true
  • Platform: Windows

Posted Mar 24, 2016, 6:34 PM UTC

73
livingonthehedge•

I have a theory about the cause of this.

You can use the work-around I mentioned and it might eliminate (or at least reduce) the false duplicates.

The sponsored link box at the top of the front page contains "new" posts but hides them behind slide-show controls.

As a work-around, users can "Click here to disable this feature"

Edit:

preferences > link options > show the spotlight box on the front page

2
bblemonadeOP•

Thanks! That's an easy enough work around.

1
andytubaWhooshing Things•

Next time you see something which you think isn't actually a duplicate, could you screenshot all the post listings and we can work through what's breaking?

--

hideDupes -- RES settings console > Browsing > Never Ending Reddit > hideDupes

Fade or completely hide duplicate posts already showing on the page.

1
livingonthehedge•

Here's another example (from someone other than OP).

False duplicate on page 2 (only 10 links per page).

Edit: the "duplicate" link HTML ...

<a 
  href="https://www.reddit.com/r/ImaginaryLandscapes/comments/4n5za1/rocky_outcrop_by_jack_gallagher/"
  data-event-action="comments"
  class="bylink comments may-blank"
  rel="nofollow"
>1 comment</a>
2
livingonthehedge•

I think I found a possible source of these mysterious duplicate posts. The sponsored link spotlight box at the top of the front page contains "new" posts but hides them behind slide-show controls.

This area shows new and upcoming links. Vote on links here to help them become popular, and click the forwards and backwards buttons to view more.

It contains 10 "new" posts from the user's subscribed subreddits.

Never Ending Reddit should probably ignore these links because they are already hidden from the user by default.

As a work-around, users can "Click here to disable this feature" but that is hidden by reddit by default so it's not ideal. Edit: preferences > link options > show the spotlight box on the front page


neverEndingReddit.js initializes dupeHash with a list of posts like this:

const entries = document.body.querySelectorAll('a.comments');

That is too inclusive and will find posts buried in the sponsored link spotlight box.

We want to skip div#siteTable_organic links and only initialize from div#siteTable:

const entries = document.body.querySelectorAll('div#siteTable a.comments');

Edit: added prefs work-around for sponsored link spotlight box

2
andytubaWhooshing Things•

ooooooh that sounds like it might be the ticket. good sleuthing, thanks for digging in!

If you'd like to submit a PR on GitHub, have at it! or someone on the core team can handle it and put you on the credits for investigation.

3
livingonthehedge•

My pleasure. I use RES every day.

2
livingonthehedge•

If you'd like to submit a PR on GitHub, have at it!

Sure. I'll do that.

1
AutoModeratorMOD•

It sounds like you want to post a screenshot to a comment on reddit.

  1. Take a screenshot: learn how to take a screenshot
  2. Upload the screenshot to imgur or other image hosting site.
  3. After uploading, copy the URL (address / share link).
  4. Reply to ^^ that comment and...
  5. Paste the URL into the comment.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1