Can't hover over post links

solved

It works for gifs but not for images.

I'm on Firefox and I've manually updated the rules but it still doesn't work.

Posted May 26, 2021, 10:39 PM UTC

3710
theY4Kman•

Aha! I figured it out! It seems reddit changed the name of the icon class used for that little outbound link, and Imagus was relying on it. It changed from icon-outboundLink to icon-external_link.

To get post links working again, head to your Sieve, search / open up the "reddit-media" entry, and replace the instance of icon-outboundLink with icon-external_link in the "to" field (the 5th field) — the field with the long script in it. Hit Save, and you should be golden.

Here's the full sieve to script (at time of writing), in case ya just want to copy/paste

:
if($[2]!==0)return $[2]=='#mp4'?$[0]:$[1]+'#mp4'
var u,p,c,n=window.location.hostname.slice(-10)=='reddit.com'&&this.node
if(!n)return''
if(n.matches('div.link a.thumbnail,div.link a.thumbnail>img, div.link a.title, div.link a.thumbnail.image')) {
 p=n;while((p=p.parentElement)&&!p.matches('div.link'));
 u=p.dataset, u=u.url||u.hrefUrl
 if(u&&/(v\.redd\.it|\.reddit\.com\/gallery)\//.test(u))return u
 c=p&&p.querySelector('div.expando[data-cachedhtml]')
 c=c&&c.getAttribute('data-cachedhtml')
 u=c&&c.match(/(?:<a href|(?:class="preview"|<source) src)="([^"]+)/g)
 if(u) {
  u=u.map(function(i){
   var u=i.slice(i.lastIndexOf('"')+1).replace(/&amp;/g,'&');
   return u+(i[1]=='s'?'#mp4':'')
  });
  u=c.indexOf('<source')!=-1?u.reverse():u
  return u.length?u.join('\n'):''
 }
 u=p.dataset, u=u.url||u.hrefUrl
}else if(n.matches('a.Post__titleLink')) {
 u = n.closest('.Post__top').querySelector('a.PostThumbnail').href
}else if(n.matches('a[data-click-id=body]>div>h3,.Post div>div[role=img]')){
 p=n.closest('div[id^=t3_]');
 if(p&&p.querySelector('p,i.icon-text'))return ''
 p=p.querySelector('a>.icon-external_link')
 p=p ? p.parentElement : {href: '//www.reddit.com/by_id/t3_'+$[1]+'.json'}
 p=this.find({href: p.href, IMGS_TRG: n})
 n.title = n.getAttribute('aria-label') || n.title
 return (Array.isArray(p) ? p.join('\n') : (p === null ? 'null' : p)) || ''
}
return u&&/^(https?:)?\/\/i\.redd\.?it/.test(u)?u:''
13
RetardedAccelerationOP•

It works! Thank you!!

5
theY4Kman•

Yaaaay!

3
PretendDr•

Dude! Thank you so much for this!

3

Thank you so much! Imagus is such a huge part of how I browse reddit <3

2
knives_for_nagisa•

Thank you!~

2
Josh4King•

I think this might possibly be related to a Reddit UI update..? I noticed today that a bunch of stuff looked different on UI, then all of a sudden I couldn't hover on post links. I can still hover thumbnails to see content, but the links don't show as read when I do that 😭.

5
outtokill7•

Looks like Reddit changed how links work with the new update so the extension is broken for this. Hovering over the actual content link on the right of the title works, but the post isn't considered 'clicked on'.

Hopefully its something that can get fixed since I really like the ability to do that.

3
PretendDr•

If anyone figures a work around for this, please let me know.

2

It still shows video for me (without audio), but most other functionality is gone.

2
D474RG•

As a workaround, try hovering the link besides de title, that one works (chrome)

2