Skip to content

Instantly share code, notes, and snippets.

@Nyr
Last active March 16, 2024 10:00
Show Gist options
  • Star 20 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Nyr/f437a9281dbcae0aae68 to your computer and use it in GitHub Desktop.
Save Nyr/f437a9281dbcae0aae68 to your computer and use it in GitHub Desktop.
Redirect imgur to the raw images skipping the crappy HTML pages
// ==UserScript==
// @name imgur direct images
// @description Redirect to the raw images skipping the crappy HTML pages.
// @include /^https?:\/\/imgur\.com\/[A-Za-z0-9]+$/
// @exclude *imgur.com/vidgif
// @exclude *imgur.com/jobs
// @exclude *imgur.com/about
// @exclude *imgur.com/apps
// @exclude *imgur.com/tos
// @exclude *imgur.com/privacy
// @exclude *imgur.com/removalrequest
// @exclude *imgur.com/advertise
// @exclude *imgur.com/blog
// @exclude *imgur.com/random
// @exclude *imgur.com/search
// @exclude *imgur.com/*.webm
// @version 1.3.3
// @grant none
// @run-at document-start
// ==/UserScript==
(function(){
window.location.replace (window.location.href + ".jpg");
})();
@vekvoid
Copy link

vekvoid commented Oct 20, 2018

Would be nice to exclude the upload page:
// @exclude *imgur.com/upload

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment