Adium Image Inliner
This is a small script, which allows you to view images right in Adium, without involving the browser. It just checks link you're clicking on and if it looks like an image to a script, it will display it inline. Click on it and you'll see original link.
You can always override that and open link in browser by holding any modifier key (Control, Command, Alt, Shift).
Look here for a current list of services that work.
How to use
Clone a repo and run
install.sh with your style name as parameter, i.e.:
If you want to go manual road, it's not very hard (check contents of
install.sh if you want):
Find your style directory: it's either located in
"~/Library/Application Support/Adium 2.0/Message Styles/YourStyle". You can check name of your style in Adium's Preferences -> Messages.
Put a file
Contents/Resourcessubdir of your style.
Edit a file
Footer.html(create it if it doesn't exist) in
Contents/Resourcessubdir to add this line:
This is it! Restart Adium and it should work.
I might write a script automating that in future.
Adding a new service
inline-images.js contains a variable named
IMAGE_SERVICES. This is a
list of objects, each defining a service. Those objects have two properties:
Re | Str -> Whatever) - either a regexp, matching given link, or a function, which can perform custom matching (should return truthy value if this service supports this link).
[Str] -> Str, optional) - a function, which takes a regexp matches from
test(or its return value) and returns a link to image.
Str -> Fn -> Node, optional) - a function which takes a link and a callback, and should call this callback with node to render. See sources for examples - Wikipedia, Twitter and Imgur's gifv in particular.
Add new service, send a pull request, and let the glory of inline images spread all over the world!