Skip to content

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

License

Notifications You must be signed in to change notification settings

pcworld/no-imgur-redirect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published