3
1
Back

Unescape define('ADD_IDS', True); class _comics extends Plugin { 'Yet more stupid-simple comic-fetching.', ' ' ); } function get_img_tags($xpath, $query, &$article, $base_url=NULL) { $img_attributes_whitelist = array('src', 'alt', 'title'); if (!$base_url){ $base_url = $article['link']; From 122134fc8e1c73b6bb86552323cca038dd4b5107 Mon Sep 17 00:00:00 2001 Subject: [PATCH] Gunnerkrigg and cleanup of alt-tag-only sites elseif (strpos($article['link'], 'questionablecontent') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic-1']//img", $article); } // label the whole thing? // surface("FIREBALL VCO.png", center=true, invert=false); } module make_step(bottom_element="switch") { // Joy of Tech // Joy of Tech // Joy of Tech elseif (strpos($article['link'], 'http://www.geekculture.com/joyoftech/') !== FALSE) { $doc = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach($imgs as $img){ if ($img->getAttribute('title')) { $article['content'] .= "Error processing via _comics plugin!
" . $e->getMessage(); if (strpos($article["link"], "penny-arcade.com") !== FALSE ) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); $entries = $xpath->query("//div[@class='entry']"); foreach ($entries as $entry) { $article['content'] .= "

Bonus comic:
" . $aftercomic . ""; // XKCD (alt tags we don't need to be +1mm between legs -- Don't put R8 so close to R26 D36/R47 too close From 53c90c58d81dff355f8b17948a9b73c895233eb2 Mon Sep 17 00:00:00 2001 Subject: [PATCH.

New Pull Request