This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /// This code is functionally equivalent to the filter code in IFTTT | |
| /// Gets largest dimension image from FB RSS <content> in the RSS entry | |
| function GetBiggestImage(content) { | |
| if (!content) return ""; | |
| if (Array.isArray(content)) { | |
| return content.map(function(e){return e.map(function(f){return GetBiggestImage(f)})}) | |
| } | |
| var re = /src\s*=\s*"(.+?)"/g; | |
| var biggestDim = [0, 0]; |