Uses duckduckgo proxy (https://proxy.duckduckgo.com/iu/?u=) for imgur links
https://openuserjs.org/scripts/Ahab/fck_imgur
Started by Ahab [1735214] on in Tools & Userscripts.
Posts archived: 14 / 14 posts (100%) · the total is Torn's reply count + the opening post at the last fetch
Counted by TornLife from the archived posts.
Uses duckduckgo proxy (https://proxy.duckduckgo.com/iu/?u=) for imgur links
https://openuserjs.org/scripts/Ahab/fck_imgur
Simple script, appears to work a charm for both posts and signatures
Only tweak I'd like to request is your
// @match
To only cover Torn sites (but I'll be doing that on my end regardless, I guess some people will want it to be universal)
Thanks!
I did just have it on torn than thought meh I will prob run in to imgur links elsewhere might as well just open it up.
// @match https://www.torn.com/profiles.php*
// @match https://www.torn.com/forums.php*
// @match https://www.torn.com/factions.php*
// @match https://www.torn.com/bazaar.php*
could prob narrow it to just profiles and the board tbh..... okay everywhere there could be links so bazaar's, factions etc
or just all of torn so it hits the chat as well
// @match https://www.torn.com/*
its been quite annoying, i've had to switch to using flickr to upload my images xD
Yeah, I have to get around to pointing shareX somewhere else at some point.
not a fan of imgur but had to try it since photobucket wants to charge me to recover my old account full of ebay things i was selling. Ya no thanks. Is flickr actually better or at least quite different? I might sign up.
it was decently simple to set up into sharex but i feel like there is a quality loss so maybe not the best option out there
[image: live.staticflickr.com]
https://live.staticflickr.com/65535/54825918014_b79ef49e82_b.jpg
Whilst I've never used it myself, I've heard https://catbox.moe/ can be pretty decent?
They have their own ShareX config ready-made
https://catbox.moe/tools.php
(I realise this is kinda derailing the thread, but still)
Updated to hit background image
love it thank you, works great on my PC, doesnt seem as happy on PDA but i'll take it!
All hail proxies!
Should work for single image page urls as imgur don't seem to care what the extension is... for what I've tested anyway (png, jpg, gif)
if(el.tagName === 'A'){
const href = el.getAttribute('href');
const regex = /^(?:https?://)?(?:www.)?imgur.com/([A-Za-z0-9]{5,})$/;
const match = regex.exec(href);
if(href && href.includes('i.imgur') && !href.includes('proxy.duckduckgo')){
el.setAttribute('href', ddg + href);
}
if(href && match && !href.includes('proxy.duckduckgo')){
const url = ddg + `https://i.imgur.com/${match[1]}.png`;
el.setAttribute('href', url);
}
}
Not going to update the script till ran it for a bit, but for anyone that wants to test it is here to copy paste in.
edit
These urls https://imgur.com/ryoQgJY