
Dilbert
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
TuxmAL
2 months ago
var re = new RegExp("data-url=\"https://dilbert.com/strip/(\\d{4}-\\d{2}-\\d{2})\"");
adding a ".*" at the end suffice to match again the data contained into the data-url:
var re = new RegExp("data-url=\"https://dilbert.com/strip/(\\d{4}-\\d{2}-\\d{2}).*\"");
Thank you again for your work, mfuchs!
Report
mfuchs
2 months ago
I updated the plugin.
Report
raphis
2 months ago
Report
TuxmAL
3 months ago
url = url.replace("http:", "https:");
I hope that can help!
Report
mfuchs
3 months ago
Report
unbob
1 year ago
Report
aaccioly
2 years ago
KDE 5 users should install it with: kpackagetool5 -i dilbert.comic
I'm also opening a PR to @camerongray's repo.
Report
francish92
2 years ago
Report
anthonyfieroni
2 years ago
Report
camerongray
5 years ago
https://github.com/camerongray1515/plasma-comic-dilbert
Report
aaccioly
2 years ago
Report
goaty
6 years ago
pageRetreived:
function pageRetrieved(id, data)
{
if (id == comic.User) {
comic.lastIdentifier = date.currentDate();
comic.websiteUrl = "http://dilbert.com/strip/" + comic.identifier.toString(date.ISODate) + "/";
print("Getting " + comic.websiteUrl + " from " + comic.lastIdentifier) ;
getComic(data);
}
if (id == comic.Page) {
getComic(data);
}
}
Report
silence
10 years ago
Thanks for writing this!
I changed two lines in the code to get the strip in higher quality:
Line 47: var re = new RegExp("<img src=\"(/dyn/str_strip/[0-9/]+/[0-9]+\\.strip)(\\.print)(\\.gif)\"");
Line 51: url = "http://dilbert.com/" + match[1] + ".zoom" + match[3];
Report
mfuchs
10 years ago
Report