Sadly, Google made it harder impossible to install the flickr creative commons attribution helper script directly from the Userscripts site. As alerted by George Couros, clicking that Install button in Chrome now gives you:

Apparently in the name of “security” Google is taking a page from Apple:

We’re constantly looking out for ways to make your browsing safer. To that end, we recently changed the way you add extensions that are not in the Chrome Web Store to your browser. Previously, any website could prompt you to add an extension into your browser. In the latest version of Google Chrome, you must explicitly tell Chrome that you want to install these extensions by adding them through the Extensions page.

To help keep you safe on the web, we have started analyzing every extension that is uploaded to the Web Store and take down those we recognize to be malicious. Unfortunately, we don’t have the ability to take down malicious items promoted on other websites. For instance, online hackers may create websites that automatically trigger the installation of malicious extensions. Their extensions are often designed to secretly track the information you enter on the web, which the hackers can then reuse for other ill-intended purposes.

The updated installation process prevents websites from automatically triggering unauthorized extension installations and gives you more control over the extensions you’re adding to Chrome.

I bet it took 18 lawyers to write that.

Anyhow, this sent me down the path of having to learn how to package the javascript as a Google Chrome package that could be uploaded to the store, and that was not all trivial.

The core of it was a manifest.json file which provided it some specs. Each time I uploaded it, I got an error saying the file had an error, but it was not specific. So I kept trying to re-edit it, but could never get it past the uploader.

Today, i was fishing around the extensions listing (since the drag and drop of the javascript did not work like their docs suggested), and I saw this button for “pack extension”:

I selected the zip archive, and voila! This time, it told reported the error as an extraneous comma at the end of an array list. For what it is worth, here is the code that worked in manifest.json:

I cleaned this up, and was able to upload the Flickr CC Attribution Helper Extension to the Chrome Store:

I wanted to test it, but did not want to muck up the working copy in my main browser, so I logged into another account on my laptop, and was able to install the extension, and verify it worked in flickr (I do note that it only works if you are logged into flickr).

This was some extra leg work, and I am not 100% sure I got it all done correctly, so I would appreciate some folks testing out this new installer.

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 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


    1. Worked like a charm. What a great idea, this is really helpful. How about adding in some size options for the photo and/or having the attribution options show when you right click on the flickr photo and choose the larger size images?

      Thanks so much for this though, I’ve often thought (as I manually copy and paste attributions from flickr) that there should be something like this.

Leave a Reply

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