PhD (en)

Plasma Comic Sources

Source (required if based on other people's work):

3
Score 72%
Last changelog:

8 years ago

1.0 adds tooltip and shop url

pietranera

8 years ago

Hi,
thank you for this comic!

You could add the comic.additionalText object to display the comic title tooltip.

I made a patch for your code:

Quote:
--- main.es 2008-10-24 04:52:32.000000000 -0400
+++ main.es.new 2010-02-28 18:27:14.000000000 -0500
@@ -34,6 +34,12 @@
var re = new RegExp("http://www.phdcomics.com/comics/archive/phd([^\\.]+\\.gif)");
var url;

+ var expTitle = new RegExp("<td> <title>PHD Comics: ([^*]+)</title>");
+ var matchTitle = expTitle.exec( data );
+ if (matchTitle != null) {
+ comic.additionalText = matchTitle[1];
+ }
+
match = re.exec(data);
if (match != null) {
url = "http://www.phdcomics.com/comics/archive/phd" + match[1];


I tested it and it seems to work. Enjoy!

Report

C

mfuchs

8 years ago

Sorry for replying so late, but I did not found a way to be informed of comments.

Thanks for the patch, I changed the plugin now.

Report

8 years ago

1.0 adds tooltip and shop url

product-maker Flu87 Jan 08 2011

product-maker bewatched Nov 11 2010

product-maker 9 37

File (click to download) Version Description Packagetype Architecture Downloads Date Filesize DL OCS-Install
Pling
Details
license
version
1.0
updated Apr 17 2010
added Oct 24 2008
downloads today
0
page views today 3