Modify RES Image Title

Sets the title attribute on the RES Image in a Reddit thread to match the document title. This is done so extensions like Pinterest can capture the image and use the document's title as the description.

2015-12-07 يوللانغان نەشرى. ئەڭ يېڭى نەشرىنى كۆرۈش.

ئاپتورى
PoorPolonius
باھا نومۇرى
0 0 0
نەشرى
1.1
قۇرۇلغان ۋاقتى
2015-12-06
يېڭىلانغان ۋاقتى
2015-12-07
Size
1.2 KB
ئىجازەتنامىسى
Copyright 2015 reddit.com/u/PoorPolonius; Released under the MIT license
قوللايدىغىنى

I like to pin things from reddit (artwork and photography). But pinning images brought in by RES yields the title attribute RES gives it ("drag to resize or shift+drag to move") instead of the document title, which means I have to copy+paste every time I want to pin from a reddit thread. So, I made this small script to update the RES image title attribute to match the document title. When you pin an RES image from a reddit thread with this script, it will automatically use the document title as the image's description.

Disclaimer: I used jQuery 2.1.4, so this script won't work with older versions of IE. You shouldn't be using them anyway :P