3
1
Back

Quick and dirty content rewriting engine with code already written for about a dozen webcomics. Examples: Joy of Tech elseif (strpos($article['link'], 'www.timothywinchester.com/2') !== FALSE) { $doc = new DOMDocument(); $doc->loadHTML($html); $xpath = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach($imgs as $img){ // Softer World (alt tags), Dinosaur Comics Cleanup // Dinosaur Comics alt tags+blog), CAD, attempt at OOTS (but that one fails due to referer Latest commits for file Fireball/Fireball_panel.kicad_pcb 972e45fb78 corrects inexplicably begreebled lower thre knob labels; confirms mask color is as defined elseif (strpos($article['link'], 'gunnerkrigg.com/?p') !== FALSE) { if (strpos($article["content"], "bonus panel!") !== FALSE) { $article['content'] = $doc->saveXML(); } Some comics supported if (strpos($article["link"], "penny-arcade.com") !== FALSE && strpos($article["title"], "Comic:") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $aftercomic = $this->get_img_tags($xpath, "//div[@id='comic-1']//img", $article); } Assorted updates elseif (strpos($article['link'], 'girlswithslingshots.com/comic/') !== FALSE) { elseif (strpos(strtolower($article['link']), 'giantitp.com/comics/') !== FALSE) { // not a standard font on any OS; get it if you want to dig into the public domain.

New Pull Request