pcworld / no-imgur-redirect

WebExtension to prevent redirect from i.imgur.com to imgur.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

When a referrer on an i.imgur.com request is set (i.e. when opening such a link from another website), Imgur sometimes redirects to the slower HTML page on imgur.com, e.g. i.imgur.com/xyz.png to imgur.com/xyz, which loads many scripts/resources/ads and does not show the picture in full size.

This WebExtension prevents Imgur from performing these redirects. It is tested in Chromium and Firefox, and should probably work in all browsers implementing the WebExtensions spec (such as Edge and Opera).

As a side effect, i.imgur.com/xyz.mp4 URLs are not redirected to i.imgur.com/xyz.gifv.

How to install

Chromium

Clone this repo or download a zip and extract it. Open chrome://extensions/ (or hamburger icon -> More tools -> Extensions), tick "Developer mode", press "Load unpacked extension" and choose the extension folder.

Firefox

Download a signed xpi extension file from the releases page and open it with Firefox.

Alternatively for developers, clone this repo, open about:debugging, press "Load Temporary Add-on" and choose the manifest.json of this extension. However, this way the extension will only persist until the browser is closed.

About

WebExtension to prevent redirect from i.imgur.com to imgur.com

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:JavaScript 100.0%