├── README.md
├── manifest.json
├── popup.html
├── content.js
├── popup.js
├── background.js
└── LICENSE
/README.md:
--------------------------------------------------------------------------------
1 | # Load Reddit Images Directly
2 | Firefox web extension that loads reddit images directly instead of redirecting to the HTML page containing the image. This works for i.redd.it, preview.redd.it and external-preview.redd.it urls. Additionally, requests to www.reddit.com/media?url=$IMAGE_URL (i.e., the before-mentioned HTML page) are automatically redirected to $IMAGE_URL (i.e., the direct image url).
3 |
4 | Note: a redirect to the original (high-res) image URL (the i.redd.it URL) can be preferred over the preview URL by changing the extension setting.
5 |
--------------------------------------------------------------------------------
/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "manifest_version": 2,
3 | "name": "Load Reddit Images Directly",
4 | "version": "1.8",
5 | "description": "Loads reddit images directly instead of referring to the HTML page containing the image.",
6 | "permissions": [
7 | "activeTab",
8 | "storage",
9 | "webRequest",
10 | "webRequestBlocking",
11 | "*://i.redd.it/*",
12 | "*://external-preview.redd.it/*",
13 | "*://preview.redd.it/*",
14 | "*://www.reddit.com/*"
15 | ],
16 | "background": {
17 | "scripts": ["background.js"],
18 | "persistent": false
19 | },
20 | "content_scripts": [
21 | {
22 | "matches": ["*://www.reddit.com/r/*"],
23 | "js": ["content.js"],
24 | "run_at": "document_end"
25 | }
26 | ],
27 | "browser_action": {
28 | "default_popup": "popup.html"
29 | }
30 | }
31 |
32 |
--------------------------------------------------------------------------------
/popup.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | Load Reddit Images Directly
4 |
10 |
11 |
12 | Settings
13 |
14 |
15 |
16 |
17 |