Firefox: managing Google+ shares with multiple Google profiles

“Sharing is caring” they say, but you should be able to decide how!

One of the latest features in Firefox (I am always running latest “stable” FF/Iceweasel release on my dual-boot Windows/Linux boxes) is the “Share button” (that little paper airplane icon…). You can add services from the dedicated page (https://activations.cdn.mozilla.net) to bother people with useless flood of kitties, using all your social network account with ease, straight from the page you’re viewing.

share_button_FF

The paper airplane!

That’s totally fine with most of services, I guess, unless you have multiple active accounts of the same service at once in your browser session: I am obviously talking about Google.

My typical collection of tabs includes my primary Gmail account and my Google+ profile, that is linked to a different Gmail address.

share_button_FF-Gprof1

“That’s one for the mail…

See those “.../u/1/...” and “.../u/2/...” in the URL field? That’s it.

share_button_FF-Gprof2

…two for the show!”

Long story short: when you add the G+ sharing service, it will default to your primary Google profile (your “.../u/0/...” account, not shown here) and that might not be be what you want. Currently there is no drop-down list to select the preferred profile (hopefully in the future?).

share_button_FF-about

Here! Where else?

Time to hack something and make it work the way I need (that is, posting with the right account).

The right place to go is of course “about:config” page: type “social.manifest” in the search box to filter the relevant entries (the sharing services you’ve already added). That was quite easy, I just guessed what the entries could be, making a first attempt with obvious key “google“.

Now we’re going to look inside the entry value to see if something can be changed to “target” the proper account.

Go on, double-click on it and a nice little dialog window will pop up, allowing you to edit the key value.

share_button_FF-dialog

Don’t be fooled by the narrow textbox: this key is quite lengthy!

share_button_FF_text

Whole lotta text

Luckily the nice bits are not in the middle of all the mess: at the very end of the string (yes, it’s a single string!) you’ll see something like

"shareURL":"https://plus.google.com/share?url=%{url}&soc-app=170"

To use your preferred Google profile for the sharing service, modify the URL adding the right profile “index” (the “.../u/X/...” part shown before. I am using my profile “2” so my modified sharing URL will read

"https://plus.google.com/u/2/share?url=%{url}&soc-app=170"

Restart Firefox to make it recognize the new settings and “it’s all right now…” (I’m jumpin’ jack flash / It’s a gas, gas, gas)

share_button_FF-ok

Now, just to be sure you understood, share this post at will!

Cheers, Firefoxers!

Informazioni su Man from Mars

https://extendedreality.wordpress.com/

  1. filiipide

    Not so long ago the smartphones used to follow the computers. Now, it seems to me, is the opposite. The features we have in a smartphone will be added (later) in a pc.

    Mi piace

    • Actually you have more restrictions on a smartphone since you usually cannot configure multiple users. In addition, having dedicated apps for web services such as social networks overcomes the problem of choosing between different accounts to share content.

      Mi piace

      • filiipide

        Yep, of course computers are more… flexible.
        But it’s just to say that now world revolves around the smartphones.

        P. S. Welcome back. It’s nice to read you again. We met on comments in italian language.
        Really, it’s my fault. I opened the blog (from smartphone) and I saw the first post (pc for sale). I didn’t scroll down and so I didn’t notice new article.
        I will solve with the feeds.

        Mi piace

        • Sure, mobile computing is the “big thing” every player in the market is going after (see also the recent Ubuntu phone). Nevertheless, quoting Linus Torvalds, “I still want the desktop”😀 and find myself still uncomfortable using a smartphone. I use it mainly to “screen” contents in advance, quickly having a look at them and saving them for later.
          P.s.: grazie per il commento in inglese. Sto scrivendo poco di recente… Ho rimosso il commento duplicato: tengo la mia “casetta” in ordine.

          Mi piace

Dimmi che ne pensi o fai "Ciao ciao!" con la manina // Share your thoughts or just say "Hello!"

Inserisci i tuoi dati qui sotto o clicca su un'icona per effettuare l'accesso:

Logo WordPress.com

Stai commentando usando il tuo account WordPress.com. Chiudi sessione / Modifica )

Foto Twitter

Stai commentando usando il tuo account Twitter. Chiudi sessione / Modifica )

Foto di Facebook

Stai commentando usando il tuo account Facebook. Chiudi sessione / Modifica )

Google+ photo

Stai commentando usando il tuo account Google+. Chiudi sessione / Modifica )

Connessione a %s...

%d blogger cliccano Mi Piace per questo: