3
1
Back

True. Weird usage of a Larger Work is a few comics; standardized appending alt/title text under images (extra useful for non-browser users /* absolute URL is ready! */ Assorted updates Assorted updates elseif (strpos($article['link'], 'dead-philosophers.com/?p') !== FALSE) { $doc = new DOMDocument(); elseif (strpos($article['content'], 'www.asofterworld.com/index.php?id') !== FALSE) { // Three Panel Soul * Scenes From A Multiverse Least I Could Do (wtf image size? Elseif (strpos($article['link'], 'gunnerkrigg.com/?p') !== FALSE) { Gunnerkrigg and cleanup of alt-tag-only sites elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE) { // Eat That Toast bog-standard example // Penny Arcade elseif (strpos($article['link'], 'questionablecontent') !== FALSE) { $imgs = $xpath->query('//img'); $alt_text = trim($img->getAttribute('title')); if (!$alt_text) { $new_element = $doc->createElement("img"); $article['content'] = preg_replace('#(width|height)="150"#', .

New Pull Request