[Date Prev][Date Next][Thread Prev][][Date Index][Thread Index]

Re: Slashdot shimbun broken by recent site upgrade

Matt Lundin writes:
> The slashdot shimbun (sb-slashdot.el) was broken by recent Slashdot site
> design changes (Jan. 25).
> I'm happy to take a look at it when I get a chance, but I thought I'd
> share the news here in case anyone else is interested in working on it.

Attached is a quick patch to at least make the basics work again. Most
of the features regarding the comment display won't work, though. It
seems those option flags you can set in the URL now only have an effect
when you're logged in at the site.

Index: sb-slashdot.el
RCS file: /storage/cvsroot/emacs-w3m/shimbun/sb-slashdot.el,v
retrieving revision 1.9
diff -r1.9 sb-slashdot.el
<   "<\\s-*h3\\s-+class=\"story\"[^\0]*?<a [^>]*?href=\"\
< /*\\([a-zA-Z]+\\)?\\.?slashdot.org/\\([a-z]+?\\)/\\(.+\\)/\\(.+?\\)\
< \"[^>]*class=.datitle.[^>]*>\\(.*?\\)</a>")
> "<\\s-*h[0-9]\\s-+class=\"story\"[^\0]*?<a [^>]*?href=\"\
> /*\\([a-zA-Z]+\\)?\\.?slashdot.org/story/\\(.+?\\)\">\\(.+?\\)<")
< 	    id (match-string 3)
> 	    id (match-string 2)
< 			"slashdot.org/article.pl?sid=" id
> 			"slashdot.org/story/" id
< 	    subject (match-string 5))
> 	    subject (match-string 3))
<   (shimbun-remove-tags "<html>" "<div class=\"intro\".*?>")
>   (shimbun-remove-tags "<html " "<div class=\"body\".*?>")