In the carefully controlled laboratory where I do my coding… no in actuality more like a scene from some ghastly middle school cafeteria food fight.
On dissecting the page structure I found the issue. My script was assembling all th enifo properly, but the XPath pattern I was looking for was not found– up til now my code looked to insert after the “tags” block on a flickr page, but this page was one where the owner had disabled tags (why, why, he open asks in frustration). In comparing a fe wplaces, it looked like a better spot to do this was below the “Additional Info” block.
I opened Firefox to test this, since I can jump right in to the script editor, and got it working. I uploaded the revised script to the UserScripts site, and then reviewed my own notes on how to get it into the Chrome Store. It looked good, everything worked.
Short note for Chrome users, sadly there is no update button, so you have to delete the old extension, go to the Chrome Store, and re-install it.
Then I wondered, is this worth blogging about? It’s rpetty minor, and I bet almost no soul on earth cares about this minute detail.
But blogging the process is important, even when I am still two days behind on grading my own students blogging (because they blogged so well, now I have more to read). And in even more irony, a friend asked if I would use a photo with this post. “No, I probably will just do a screenshot.” But then I thought, why not? So I found the image above.
It was lacking my attribution insertion.
Because the photo had no “Additional Info” provided.
So I went back to the lan again, and moved the inserted content to come after the License block.
So if I had not decided to blog, and if I had not decided to include a photo in the blog (where I use my own script for the attribution), I would have missed my second goof.
Maybe there are reasons for things happening.
And thus, you can all see how datn efficiently I work.
I think it’s time for a nap.
UPDATE Feb 5 (later): I will beed to do more tinkering to make this a Safari Extension; Apple has its own hoops to jump through. I previously was able to install the Firefox script version using GreaseKit