From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/79434 Path: news.gmane.org!not-for-mail From: Philipp Haselwarter Newsgroups: gmane.emacs.gnus.general Subject: Gnus as webcomic reader: stripping ads, preparing html part Date: Sun, 10 Jul 2011 22:37:05 +0200 Message-ID: <87y6057tzi.fsf@nzebook.haselwarter.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1310330289 5968 80.91.229.12 (10 Jul 2011 20:38:09 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 10 Jul 2011 20:38:09 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M27730@lists.math.uh.edu Sun Jul 10 22:38:05 2011 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Qg0lQ-0002SF-0T for ding-account@gmane.org; Sun, 10 Jul 2011 22:38:04 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1Qg0kz-0000Dy-0L; Sun, 10 Jul 2011 15:37:37 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1Qg0kw-0000Dc-0w for ding@lists.math.uh.edu; Sun, 10 Jul 2011 15:37:34 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1Qg0kj-0000ag-2B for ding@lists.math.uh.edu; Sun, 10 Jul 2011 15:37:31 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1Qg0kg-0007G8-6q for ding@gnus.org; Sun, 10 Jul 2011 22:37:18 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Qg0kf-00025B-OM for ding@gnus.org; Sun, 10 Jul 2011 22:37:17 +0200 Original-Received: from 177.113.113.78.rev.sfr.net ([78.113.113.177]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 10 Jul 2011 22:37:17 +0200 Original-Received: from philipp.haselwarter by 177.113.113.78.rev.sfr.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 10 Jul 2011 22:37:17 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 57 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 177.113.113.78.rev.sfr.net X-NSA-Fodder: clones cryptographic NSA JSOFC3IP Hugo Chavez Ruby Ridge X-Emacs-Acronym: Every Mode Acknowledges Customized Strokes User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:kBPmJzHyZ2Soe0xPsBaKjJzcV9A= X-Spam-Score: -4.9 (----) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:79434 Archived-At: Hey, I'm trying to set up gnus for reading webcomics, either directly through RSS or on gwene (seems more comfortable as a longer history is available). Inline html-image display did not exactly work right away, I'm using a bit of a hack right now. But what I'm really still struggling with at the moment is blocking chunks of the html. For example the gwene feed of http://www.questionablecontent.net/ is at gwene.net.questionableco and starts with a nice ad banner. I hoped `gnus-article-strip-banner' could be used to block it, but so far I have not succeeded. It seems that even when html parts are treated, only the text-parts gets processed, anything inside html-tags is not touched. This is an example of the part I'm trying to get blocked: #+begin_src html




Ads by Project Wonderful! Your ad could be here, right now.

#+end_src To do so I've added this group-parameter #+begin_src emacs-lisp (add-to-list 'gnus-parameters ("questionable" (mm-text-html-renderer 'w3m) ;shr seems to resize the image ;; required to actually display images (mm-inline-text-html-with-images nil) (gnus-article-prepare-hook 'w3m-toggle-inline-images) ;; this won't work just yet (gnus-article-treat-types (cons "text/html" gnus-article-treat-types)) (bannner . "^.*wonderful\\(\n\\|.\\)+
") )) #+end_src The banner does not work because I'm trying to get at the html tags. How can I get this filter working? -- Philipp Haselwarter