Hacker News new | ask | show | jobs
by smusamashah 673 days ago
I am using a chrome extension that modifies headers[1]. It modifies headers for reddit images.

I have these rules defined inside

    url:https://preview.redd.it/, domain:true, sub:true, header:Accept, add:true, modify:false, remove:false, header_value:image/*
    url:https://i.redd.it/, domain:true, sub:true, header:Accept, add:true, modify:false, remove:false, header_value:image/*

With these defined, an image just opens like an image, without any reddit wrapped around it.

[1] https://chromewebstore.google.com/detail/modify-header-value...

1 comments

Thanks for this. I just threw your comment on Llama and asked for a userscript that would also be compatible with old reddit. It gave me this https://pastebin.com/0d7mhcBu and it's been working fine. I can now middle/right click an image and open it fully in a new tab instead of that new webpage.