Pseudoblog operowo-komputerowo-…

A tu nie pamiętam co było

Moving extensions to a different toolbar

, , ,

How to change the position of Extensions toolbar & optional drag&drop for that toolbar

This is a translation of my text about Moving extensions written in Polish.
Please note that it doesn't say how to change the order of extensions on toolbar, but how to move all of them to a different toolbar.
It's based on suggestion made by Pizzapops and a blog post by shoust.


Many extensions put a button on the Address bar, which may be a source of frustration to some users. What can you do with that? You can for example delete the Search field and search directly using Address field and keywords - that will make more room for extensions. But if you don't wan't to do that, or it's still not enough, or you don't want to have extensions on your Address bar, you can:

Show/Hide extensions using a shortcut

You can show or hide the Extensions toolbar (yes, it is a toolbar too, although it's placed on a different toolbar smile) using a button (or keyboard shortcut/mouse gesture/menu entry - in Opera if you can do one of these, you can do the same using any of these)...

Button: Show/Hide extensions. Button's code is as follows:
opera:/button/Set alignment, "extensions toolbar", 6, -874459112, "Extension 16" | Set alignment, "extensions toolbar", 0
If you want to make a keyboard shortcut/gesture, you can use this as an action:
Set alignment, "extensions toolbar", 6 | Set alignment, "extensions toolbar", 0

Wrap the Address bar

If you've got really many extensions, you can set Address bar to wrap, so that Extensions appear "in a new line". Right-click the Address bar > Customize > Appearance > Wrapping > Wrap to multiple lines and after that add a wrapper from Appearance > Buttons > Spacers in front of extensions (before extensions).

Move to a different toolbar

Opera 11 has an entry "Extension Set Parent" in Preferences Editor. In order to find it, type "opera:config" in your Address field and use the search field on the site that opens. You can also just click this link: opera:config#UserPrefs|ExtensionSetParent.

Default value of that field is "Document Toolbar" which explains (not really, but you can guess that it's that wink) that it's a name of a toolbar. On the image below I marked some example Toolbars and wrote their names:

I hope you can read it, because I don't want to write it again as plain text :/. You can also see: "Extensions panel" thread. Name of the Widgets panel is ""Widgets Panel Toolbar". There is also "Site Navigation Toolbar", but you may prefer to use wrapping the Address bar instead of putting extensions on it. Especially if you've got Bookmarks bar enabled - IMO bookmarks should be closer to the page than extensions, but overall look and feel may depend on the skin you use.

Here are the steps you have to do to change the tollbar:
  1. Open opera:config#UserPrefs|ExtensionSetParent.
  2. Write the name of preferred toolbar (e.g. "Hotlist Floating").
  3. Click Save, then OK.
    What happened? Yet, nothing at all, which means we didn't perform all needed steps.
  4. Right-click extensions on the Address bar and choose Customize > Remove from toolbar.

Oh! Something showed up! In case of Hotlist Floating we have to set extensions to be displayed vertically: Right-click it > Customize > Apperance > Placement > Left (or right).

If you want to move the extensions toolbar relatively to other buttons, e.g. to the left - move other buttons to the right of it doh (drag&drop buttons while holding Shift). If you encounter any problems, you can as well edit the configuration file yourself and change the order of buttons by changing the lines in section "[toolbar_name.content]". Or...

Drag&drop

It would be even nicer if we could drag&drop the extensions toolbar like any button. Would you like that?

We have to move the Extensions to a toolbar we don't use ("Browser Toolbar" will probably be the best for most of you) by following the approach described above and then we open the Toolbar configuration file (After closing Opera! This file is automaticaly copied after you made any changes to toolbars, so you don't have to worry about side-effects like overwriting the configuration after update). In the end of the file add:

[Ext.alignment]
Auto Alignment=1

[Ext.content]
ExtensionSet1
and in section "[Customize Toolbar Custom.content]":
ButtonSet, Ext
If it doesn't exist, simply - create it and add:
[Customize Toolbar Custom.content]
ButtonSet, Ext
It's also good to write (to remove the border/frames around icons) these lines:
[Extensions Toolbar.style]
;Button skin=Extension Button Skin
Button type=2
Button style=0
Wrapping=0
(Of course if it already exists, just remove or comment-out the line: "Button skin=...".)

I will not write what it's all about. If you're interested, you already know, or you will find out. For others, it's important that it works wink.

What now? Open Opera and select Menu O > Appearance > Buttons > My buttons and drag&drop the extensions wherever you want.

Cheers and good luck in customizing Opera to suit your needs smile.

Jeszcze szybsze otwieranie ulubionych stronSkróty klawiaturowe w Operze i przykładowa konfiguracja wykorzystująca skróty jednoklawiszowe

Comments

Burov Dmitrythe-Arioch Saturday, February 26, 2011 10:49:05 PM

very complete, thanks
and best of all - it easy to find in Google !

i wish separate ext. buttons could be dragged isntead and their visibility be dynamic and customisable, like Windows tray icns
hope it woud be done one day...

can show/hide button not have hardcoded location, but show/hide location that was set by user ?

is there a way to put widgets onto "Bookmarks bar" ?
seems widgets disappear and Opera crashes on activating any page from widget (WOT, ScribeFire) ?

Edited by Saskatchewan: comments merged into one comment

Saskatchewan Sunday, February 27, 2011 4:45:56 PM

Originally posted by the-Arioch:

can show/hide button not have hardcoded location, but show/hide location that was set by user ?

It always shows/hides the Extensions toolbar, wherever it's placed... But yeah, it's quite hard to say which one will be hidden if you've got few of them dragged on different toolbars.
If you're talking about hiding a whole toolbar on which you place extensions (e.g. Site Navigation Toolbar), you can replace "Extensions toolbar" with a name of toolbar you want to show/hide:
opera:/button/Set alignment, "Site Navigation Toolbar", 6, -874459112, "Extension 16" | Set alignment, "Site Navigation Toolbar", 0
Paste this code into your address field and click the link on error page you get, to add a button.

Originally posted by the-Arioch:

is there a way to put widgets onto "Bookmarks bar" ?

No, Opera allows only bookmarks and search fields to be placed on Bookmarks bar.

Originally posted by the-Arioch:

seems widgets disappear and Opera crashes on activating any page from widget (WOT, ScribeFire) ?

I didn't test it and I don't know about any problems with that.

Burov Dmitrythe-Arioch Thursday, March 3, 2011 1:53:14 PM

to my experience, this button hides ExtBar wherever it placed, true
But then it unhides it at default position.

it did and only stopped crashing, after a cleaned everything ExtBar-related from ini-files

Okay... then can the button hide not only extension bar, but also next-line separator before it ?
Making Document-toolbar always wrapped into two lines is overbloating things. But thanks to oversimplistic ExtBar model of Chrome, that Opera followed, it is easy to gets more extensions buttons, that can fit there.

So, it would be nice to keep ExtBar hidden, and to unhide it onto 2nd line. Currently i can not make both, i have to wither use Hide button or to use 2nd line for full-width.

Saskatchewan Thursday, March 3, 2011 3:22:15 PM

Originally posted by the-Arioch:

to my experience, this button hides ExtBar wherever it placed, true
But then it unhides it at default position.

It may depend on where - which toolbar - you put the button. Some buttons work differently when placed on different toolbars, i.e. Go button on the Address bar and any other toolbar; custom button to expand a tree view placed on a panel, expands a tree in that panel because it works in a "context" - that's how it knows if there's a tree to operate on wink. But I can't say for sure how does this work left.

Originally posted by the-Arioch:

can the button hide not only extension bar, but also next-line separator before it ? (...) So, it would be nice to keep ExtBar hidden, and to unhide it onto 2nd line

No. The only way to accomplish a similar result is to remove default buttons from "Site Navigation Toolbar" (or "Document View Toolbar") and put extensions there. Then you can hide the whole toolbar using a custom button.

Gary Walshgarywalsh Saturday, March 5, 2011 4:04:29 PM

Excellent tips. Thanks. :))

Sn3ipen Friday, March 25, 2011 10:11:15 PM

Thanks allot for this. To bad the rest of your blog is in polish, else I would have subscribed. p

Alexeyalex-shpak Wednesday, April 13, 2011 12:15:08 AM

good post!
By the way, don't you know any way to change the buttons order on the extensions toolbar?

Saskatchewan Wednesday, April 13, 2011 7:38:54 AM

Unfortunately not.

Unregistered user Thursday, April 28, 2011 10:52:09 AM

HeyThere writes: Do you know if it's possible to change the icons of extensions, like other toolbar buttons can? Thanks for the informative post.

Saskatchewan Thursday, April 28, 2011 12:56:13 PM

The only way is to change it in the extension itself. Extensions are standard .zip files with their extensions left changed to .oex. To switch the icon, you can use any application that can update zips "on the fly", or unpack it, then pack it again.

You can find all installed extensions in the "widgets" folder. I.e. in Windows 7 it's in "C:\Users\YOUR_USERNAME\AppData\Local\Opera\Opera\widgets\".

Istvan HoffmannHofi Thursday, April 28, 2011 6:36:37 PM

Thanks for this great article!
I got almost everything to work except drag&drop :/
I'm using opera 11.01 on win7.

Saskatchewan Thursday, April 28, 2011 6:44:10 PM

What was the problem with drag & drop? You have to look carefully which sections of the configuration file you're changing.

It was working for me without any trouble with Opera 11.01 on Win7x64.

Istvan HoffmannHofi Thursday, April 28, 2011 7:32:05 PM

I've edited the toolbar conf file as suggested but unable to drag&drop the extension bar. Every other modifications worked fine i'm able to replace the bar via editing opera:config#UserPrefs|ExtensionSetParent, even able to modify extension buttons border.
May I post you te toolbar conf file for review, I can't see the problem!?

Saskatchewan Friday, April 29, 2011 8:27:34 AM

Are you trying to drag extensions from Menu O > Appearance > Buttons > My buttons? Standard Extensions toolbar will not be affected by the change, and it will not be movable.

If that's not the issue, you can put your conf file in your Files on My Opera and send me a PM with a link to it. I'll see if I can find any errors.

Istvan HoffmannHofi Saturday, April 30, 2011 5:09:31 PM

oooooooo, i missed the last step, i did not hide the standard extension toolbar and tried to move THAT instance.
sorry and thanks for your time!

QuHno Saturday, June 18, 2011 11:12:58 PM

Another great place for the extensions toolbar is the Document View Toolbar - especially if you drag and drop the "view" button from the Shift+F12 - buttons - browser view dialog to another toolbar. That way you can easily switch the view bar on and off...

Unregistered user Sunday, June 19, 2011 5:16:44 PM

Anonymous writes: Brilliant article! I got so many extensions and this is just what I need! Thanks you so much! Yet if there is a way to re-order the extensions it would be very sweet. I really hope Opera could try to make this thing easier in their next version.

Unregistered user Monday, July 4, 2011 12:43:01 PM

Анонимно writes: Thanks alot! I have nothing else to say!

drozdman Wednesday, July 20, 2011 10:57:07 PM

It can be even better. You can add to that the "Show/Hide The Extensions Button Area" button from Vectronic's site.
I prefer a different icon here.

Saskatchewan Thursday, July 21, 2011 8:12:00 AM

Originally posted by drozdman:

You can add to that the "Show/Hide The Extensions Button Area" button from Vectronic's site.

But the button, which is in the text, looks almost exactly the same...

drozdman Thursday, July 21, 2011 2:15:17 PM

Vectronic uses "Extension Icon", I changed it to "Extender Down Arrow".

Unregistered user Tuesday, June 26, 2012 6:39:42 PM

Anónimo writes: Were is wrapper in Opera 12, any button's code for simulate it?

Unregistered user Tuesday, June 26, 2012 6:41:52 PM

Anónimo writes: Quote: "(Of course if it already exists, just remove or comment-out the line: "Button skin=...".)" You mean in if it already exists [Extensions Toolbar.style] or any section? Thanks a lot

Saskatchewan Tuesday, June 26, 2012 7:08:03 PM

There is no wrapper in Opera 12.00… You can add
Spacer,3
Spacer,4
to the [Customize toolbar custom.content] section in your standard_toolbar.ini. Then you'll see the wrapper among your custom buttons.

I think I meant: if [Extensions Toolbar.style] section already exists, then put the comma before "Button skin=" (as there's no need to copy the section if it's already there).

Unregistered user Wednesday, March 20, 2013 10:22:31 AM

Steve writes: Why is this not added prepared in Opera by default so user simply drag and drop extension icon whenever it want in context menu various tool bars and so on ! Why must everything be blocked and why user must discover it the ''HARD WAY'' ? I'm not in the mud to discover which ini/what so ever file to program how due much differ from what described here ! So why not mod Portable Opera Browser so that would be extensions maximal manageable with dropping to what ever location even to context menu extension ! The best place would be under Tools Extensions Installed - can be named diferently Ghostery AdBlock ... ... ... and so on - all extension placed here but with ability to create sub context menu for security, social, tools etc ... max possible configuration - user choice ! I also prefer to have the same option on mouse right click button menu but chosen what extension i wish to have it to have here ! And on Document tool bar only chosen fast selection extension few of them ! Also feature lock unlock extension placement due to browser crash not to be any mess due Opera browser crashes very frequently lately and developers do not fix it !!! Someone that knows what he is doing should mod it virtualize it with some open source like JauntePE/similar with red border around browser but all functionality preserved and no data stored on system all in sub folder also with updatability of browser ! Only download folder freely chose able transparently what ever drive folder in the system ! And then post it on SOURCEFORGE ! I have try to mod browser my self but end's up in total crash ! This is not an easy task and one is to be IT professional !!! I have complain it on many occasion to Opera developers but nothing rely happens - they play dumb and dumber !

How to use Quote function:

  1. Select some text
  2. Click on the Quote link

Write a comment

Comment
(BBcode and HTML is turned off for anonymous user comments.)

If you can't read the words, press the small reload icon.


Smilies