cc licensed ( BY NC SA ) flickr photo shared by Tojosan

Long ago when I was working at Maricopa, I called our computer repair department to fix some issue with an Apple computer. I was a bit incredulous when Bill the Repair technician opened the case, and whacked the hard drive with his screwdriver, calmly closed it up and said, “that should do it”.

Except he did fix it.

That’s how I feel like my coding method goes.

Sometime in the last few days (I know it worked Wednesday night), flickr changed something slightly in the divs and class names of te sidebars on their photo pages. To everyone else, they see nothing different, but for my humble flickr cc attribution helper script, any change to this structure ruins the script’s ability to find where to insert the attribution text.

If I was s bit more savvy with DOM and XPath, I might be able to avoid the dependencies now I have on page structure, but until then, when this happens, I have to find the right screwdriver, and whack the code til it works. Thanks to Jesse McLean (and someone else earlier) who mentioned the script was not working

https://twitter.com/jmclean77/status/328605117685329920

I’ve been able to update the greasemonkey script for firefox- you should be able to update by installing from http://userscripts.org/scripts/show/49395. Chrome users, you will first have to remove the extension and then install again from the Chrome Store (Also on the list is to figure out how to set up an update option).

I can validate it works on a number of photos I have looked at in Chrome and Firefox, this is for a photo I just posted tonight, and the attribution script is in the lower right again:

flickr cc attribution

If it does not appear for you please send me a message via twitter, sometimes there are some combinations of page options I miss when testing.

If this kind of stuff has value, please support me by tossing a one time PayPal kibble or monthly on Patreon
Become a patron at Patreon!
Profile Picture for CogDog The Blog
An early 90s builder of web stuff and blogging Alan Levine barks at CogDogBlog.com on web storytelling (#ds106 #4life), photography, bending WordPress, and serendipity in the infinite internet river. He thinks it's weird to write about himself in the third person. And he is 100% into the Fediverse (or tells himself so) Tooting as @cogdog@cosocial.ca

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *