
PhD [eng]
Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net
1.1 2 months ago
1.1 fix comic
9 years ago
1.0 adds tooltip and shop url
pietranera
9 years ago
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
mfuchs
9 years ago
Thanks for the patch, I changed the plugin now.
Report