xkcd
mfuchs
Source i (link to git-repo or to original if based on someone elses unmodified work):
More Plasma Comic Sources from mfuchs:
Other Plasma Comic Sources:
© 2025 OpenDesktop.org - Libre Cloud Services
All rights reserved. All trademarks are copyright by their respective owners. All contributors are responsible for their uploads.
Ratings & Comments
14 Comments
Dear all, since the source dilbert.com has shut down I guess this could be removed from the list of available comic plugins. https://en.wikipedia.org/wiki/Dilbert
As of 2 days ago Dilbert Plasmoid was not displaying the comics once again: it seems that they changed slightly the data-url value referenced into pageRetrieved function 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!
Thanks a lot! I updated the plugin.
That solved it, thanks! :)
9 Since a week Dilbert comisw was not functioning at all, then i discovered that the 'meta property="og:image" ..'. tag was returning an http link instead of an https type, so i added after row 50 of main.es thil line ad all goes ok once again: url = url.replace("http:", "https:"); I hope that can help!
Thanks for the info! I updated the plugin accordingly. :)
8 8 great
Working version: https://github.com/aaccioly/plasma-comic-dilbert/releases/tag/2018-11-26 KDE 5 users should install it with: kpackagetool5 -i dilbert.comic I'm also opening a PR to @camerongray's repo.
Please correct YYYY-MM-DD to ISODate or yyyy-MM-dd.
I have created an updated version of the plugin to support the changes to Dilbert.com that were made in January 2015. https://github.com/camerongray1515/plasma-comic-dilbert
Cameron, I took the liberty of writing a new version that works with https: https://github.com/camerongray1515/plasma-comic-dilbert/pull/2
Line 47: var re = new RegExp("src=\"(http://assets.amuniversal.com/[0-9a-f/]{32})\""); 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); } }
Hi, 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];
Thank you very much, looks a lot better now. :)