Skip to content

Commit

Permalink
subredditinfo works for links in d2x posts and comments
Browse files Browse the repository at this point in the history
  • Loading branch information
erikdesjardins committed May 19, 2018
1 parent 7958e86 commit 1f9263d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/modules/subredditInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ module.go = () => {
'a.subreddit',
'a.search-subreddit-link',
'.md a[href^="/r/"]',
'.Post a[href^="/r/"]',
'.Comment a[href^="/r/"]',
'a[data-click-id="subreddit"]',
!module.options.requireDirectLink.value && '.md a[href*="reddit.com/r/"]',
].filter(x => x).join(', ');
Expand Down

0 comments on commit 1f9263d

Please sign in to comment.