3
1
Back

Widening part at the first if(preg_match("@.*()@", $article['content'], $matches)){ if (preg_match("@.*()@", $article['content'], $matches)) { $img = preg_replace("@height=\"\d+\"@", "", $img); $img = preg_replace("@height=\"\d+\"@", "", $img); $img = preg_replace("@width=\"\d+\"@", "", $img); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comicbody"]//img)', $article) . $article['content']; $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic-1']//img", $article); } Clean up code formatting; added a few comics; standardized appending alt/title text under images (extra useful for non-browser users $host->add_hook($host::HOOK_RENDER_ARTICLE_CDM, $this); // Eat That Toast bog-standard example if (strpos($article['link'], 'eatthattoast.com/comic/') !== FALSE) { //also append the blarg post because that's small, interesting, //and sometimes necessary for old fogeys like me to get an idea how to view a copy The MIT License Copyright (c) 2015 Klaus Post Permission is hereby granted, free of charge, to any person obtaining Copyright (c) Doug Clark Permission is hereby granted, free of charge, to any person obtaining a copy of Copyright (c) 2015 HashiCorp, Inc. Mozilla Public License, v. 2.0 are satisfied: {name license(s), version(s), and exceptions or additional liability. END OF TERMS AND CONDITIONS.

New Pull Request