You need to be logged in to post in the forums. If you do not have an account, please sign up first.
Ini file tweaking
This is important for people who want to customize Opera by editing the .ini files. It was posted to the opera.beta newsgroup by a developer.==================================================
How things are now:
The program directory has a "defaults" folder with the following files:
standard_toolbar.ini
minimal_toolbar.ini
standard_menu.ini
standard_keyboard.ini
standard_mouse.ini
DON'T TOUCH THOSE!
Instead, you put your stuff in your "profile" folder, under
the subfolders named "toolbar", "menu", "mouse" and "keyboard".
Everything except menus are now configurable from inside Opera, and Opera
will automaticly put all that in the those subfolders.
IMPORTANT: Only CHANGES needs to be put in such new files. Opera
will read from standard files the sections that are missing.
This is important so that when upgrading later, you will at least
get our newest setup in those areas where you didn't change things.
(the premade minimal_toolbar.ini is an example of this)
There will soon be possible to upload your changed files to my.opera.com,
for others to download, just the same way as with skins,
and that's why it's very important that those changed setup files
only contains sections that is actually different from "standard.ini"
Note that you can now define custom mouse gestures everywhere, to do
anything!
Happy tweaking.
==================================================

Håvard Kvam Moen @ My Opera / Twitter
Opera Mobile 14 beta & Opera Mobile 12.1 & Opera Mini 7.5 on Samsung Galaxy Nexus
Opera Mobile 12 & Opera Mini 7 on Nokia E51
Originally posted by D1sasterp1ece:
Try holding down shift while cliking on a menu entry. As for menu coding stuff, I can't help you much more than what you can find on this forum and OperaWiki.
Holding down shift would be a lot easier! Things can get very messy and you lose all your friends when you really start getting into customising Opera's menus. It's like digging for gold and you keep finding little nuggets to keep you going.
-------------------------------------------------------------------------------------------------------------------------------------------

Georgi says "Hello!"
17. August 2009, 22:12:31 (edited)
Also mine is now to be found in the "C:\Program Files\Opera\ui" directory. When you create a duplicate (to edit) this appears in the "C:\Documents and Settings\myname\Application Data\Opera\Opera\menu" directory.
I edited that and left it in that directory - it seems to work there, rather than in the profile directory.
I seem to be getting rather a lot of "Opera Standard (Modified)" entries in my Toolbar Set-up box in Prefs..Advanced..Toolbars. Everytime I re-select "Opera Standard" I get a new one. Is that a bug or a feature? I have a custom menu set-up file selected in the box below it.

-------------------------------------------------------------------------------------------------------------------------------------------

Georgi says "Hello!"
Originally posted by sgunhouse:
If you select "Opera Standard" and then make one change, then you get a new "Opera standard (modified)". You close the panels, maybe? Any change to a toolbar or the panels which are visible will do it.
Yes, I think that was it. I wish it would only make one and keep modifying it.
Anyways, for the first time in my long experience of using Opera I've done the right thing and customised my menu without editing the original ini file!
Strange looking menus though - I going back in for another look!
I was about to create a menu.ini entry on images to get the name of the image only (not the address, as "Copy image address" does). So far so good, but it were great if I could copy it to the clipboard. After searching I found no way to do that - is it really so? No workaround, hidden form or an onkeydown thingy, anything? Or any other way to get the name of the image (with extension)?
Here's my solution btw:
[Image Popup Menu]
Item, "IMAGE NAME"=Copy image address & Go to page, "javascript:fp='%c';arr=fp.split('/');alert(arr[arr.length-1]);"
Using Opera 11.10 beta
Originally posted by sgunhouse:
Javascript can't access the clipboard, true.
A setting should be there. It's a necessary thing and Google Docs uses it. Mozilla Firefox has it.
If you need any help from me with regards to Opera, please make a comment on any of my blog posts.
Support Opera wishes
8. October 2011, 23:47:46 (edited)
Thanks so much,
Any solution will be greatly appreciated.
John
Skin Tutorial
Browser JS • Changelogs • Opera Next • Dragonfly • Bugs • FTP • Document Courier
My Website ▪ My Forums ▪ Opera Review ▪ My Fonts ▪ IrfanView • Search • Downloads
Opera 11.64 on Windows XP Home • AMD64 3500 1GB RAM specs
Rules of Conduct and Posting Rules • Please Don't Shout • Editing Posts • Opera Config Links
9. October 2011, 20:03:59 (edited)
EDIT: With me using WinXP, I just realized the color of the pagebar is dependent on the color of the 3D Objects in the DisplayProperties / Appearance settings--when
[Pagebar Skin] / ClearBackground = 0in the skin.ini is set to Zero If I leave the above set to One, then I get the ugly Grey Pagebar.
20. June 2012, 04:52:37 (edited)
On "[Image Popup Menu]", "[Image Link Popup Menu]", and other eventual image-related sections, add somewhere:
Item, "Google Image Search" = Copy image address, & Go to page, "http://www.google.com/searchbyimage?image_url=%c"
The same address can be used for a custom search, even though the option to generate one is disabled in that search field. Just change "%c" to "%s".
To drag an image from my files and to drop it on google does not seem to work for me though. But may be some linux/linux DE/specific app thing.
To make the shortcut work in any case I'm currently testing a version that adds a "dummy" Google image search and only after that applies the shortcut. A bit clumsy, but so far works rock solid:
Copy image address & Go to page, "http://images.google.com/images?hl=en&q=dummy" & delay,500 & Back & Go to page, "http://www.google.com/searchbyimage?image_url=%c"
23. June 2012, 21:16:18 (edited)
Other thing that may influence is that google by default disables this sort of image search for opera. In my "site preferences" for the google image search, Opera identifies as firefox or something. Edit 2: I just set it to identify as opera that and it failed, redirecting to the default google search page. It seems that's the cause then.
Anyway, another menu customization I hadn't seen around yet (copying from my own post in the "feature request" forum), Google translation with automatic language detection:
Item, "Google translate"=Go to page, "http://translate.google.com/translate?hl=en&sl=auto&tl=en&u=%u"
Insert that on the "[Document Popup Menu]" section , perhaps some other sections (I never reember these details with any certainty, or even the whole thing of having a separate text just for the customizations, search/ask somewhere else for how it's better to customize the menu).
You just right click any page and the link to translate will be there, google will detect automatically what's the language. "En" in the url is obviosly the target language, replace that for whatever is the abbreviation of another language, if you want a different target language or more options.
To translate pieces of selected text only, rather than entire pages:
Item, "Google translate"=Go to page , "http://translate.google.com/#auto|en|%t"
I've put it as the first item in the "[translate menu]" section. I don't know if it even still exists, I'm using opera 11.64, but I've been keeping my ini files perhaps from a few more versions ago...
Item, "Grammar checker"=Select all & Copy & Go to page , "http://twinmarker.net/en/QueryResponseEn?textinput=%c"
In normal (non-portable) Opera you have two versions. One is in Program Files (which isn't supposed to be edited) and the other is in Application Data (this is the one that should be edited)
In the portable install, I've only found one. Do I modify this one, or do I create a new one, and if so, where do I put it?
Originally posted by haavard:
IMPORTANT: Only CHANGES needs to be put in such new files. Opera
will read from standard files the sections that are missing.
Not for me, it doesn't. All default entries are lost and the menus only show my custom addition. What do I do?

Here are the contents of %AppData%\Opera\Opera\menu\standard_menu (1).ini
Opera Preferences version 2.1 ; Do not edit this file while Opera is running ; This file is stored in UTF-8 encoding [Version] File Version=2 [Info] Description=Opera Standard menu setup Author=Opera Software ASA Version=1 NAME=My Menu Setup [Bookmark Item Popup Menu] Item, Open in Firefox=Copy & Execute program, "firefox","%c" [Document Popup Menu] Item, Open in Firefox=Execute program, "firefox","%u" [Link Popup Menu] Item, Open in Firefox=Execute program, "firefox","%l"
Originally posted by haavard:
IMPORTANT: Only CHANGES needs to be put in such new files. Opera
will read from standard files the sections that are missing.
E.g. Opera first will search for the section [Document Popup Menu] in your customized menu file. If it finds the section, it will apply the contents (in your case only 1 item). If it doesn't find the section, Opera will use the section contained in the standard menu file.
Originally posted by mochikun:
Opera first will search for the section [Document Popup Menu] in your customized menu file. If it finds the section, it will apply the contents (in your case only 1 item).
Uuuuugh
If I have to include whole sections, that means the more updates Opera gets, the more likely it is the menu will eventually break because the custom file will be outdated. Actually, I distinctly remember that happening in the past, and why I didn't try menu editing again until recently.Thank you for the explanation though. I appreciate it

Originally posted by Gingerbread-Man:
If I have to include whole sections, that means the more updates Opera gets, the more likely it is the menu will eventually break because the custom file will be outdated
Theoretically yes, practically not. Only a few sections are worth customizing, standard menus don't change much, some items may become dysfunctional but nothing breaks, you can - and should - switch occasionally to the standard menu to check on Opera's default menus. In general at least for me the pros outweigh the cons.

Is it possible to change the Open With menu that appears in the context menu of web pages? It's listing Internet Explorer and Opera Internet Browser, which seems weird. I'd also like Firefox in there, and I guess Nightly isn't detected as such because it's a test version.
Also, is it possible to add the Open With menu to the context menu for links on web pages, bookmarks, and history items?
Originally posted by Gingerbread-Man:
Again: The menus seldom change, even in case of a major version change. Would confuse users, wouldn't it? And the customized menu is your menu, so why be bothered when they change their menu? Some of my menus have little resemblance with the standard menus and I don't care what the original menus look like. That's the beauty of customization.I'll just try to remember to update my custom menu file every time the major version number goes up
Short answer: No. It's an internal menu and can't be customized. But you can roll your own (see here).Is it possible to change the Open With menu that appears in the context menu of web pages?
Also, is it possible to add the Open With menu to the context menu for links on web pages, bookmarks, and history items?
You can add it to any menu where it makes sense. Use the Include command if you need the same (sub)menu more than once (plenty of examples in the standard menu file).
Originally posted by mochikun:
Short answer: No. It's an internal menu and can't be customized. But you can roll your own (see here).
I thought so. And let me guess, that's the only menu that will automatically fetch the icons from the target executables. I extracted standard_skin.zip but I can find no trace of either an Internet Explorer or Firefox icon in there. Judging from other threads, creating a custom skin is the only way to get custom icons in menus. That's way more effort than I'm willing to put into it.
It seems Opera is retrieving the list of browsers from the registry. For whatever reason, Firefox Nightly wasn't registered in that list. It added itself after I set it as my default browser. The menu still stinks, because it's listing Internet Explorer at the top followed by a separator for no apparent reason (it's not my default browser). But at least it's got Firefox in there now, and it still beats replacing it all over the place with my own iconless menu.
I also wanted Reload and Reload All in the context menu for tabs, so that's another 2 sections that had to be fully replaced for the sake of 2 menu items

Originally posted by mochikun:
You can add it to any menu where it makes sense.
If only. When I add Open With to panel items like Bookmarks, it's grayed out.
Well, that's probably as far as my patience will carry me. Thanks again for the help.
Originally posted by rilef:
Not really? I assume that Gingerbread-Man would call this a custom skin, and so do I. Or are "real" custom skins always self-contained, i.e. a complete substitute for standard_skin.zip? I don't care much for skins, so that's a genuine question. I always thought that custom skins would require standard_skin.zip as basis and only contain settings that are different from the default.Originally posted by Gingerbread-Man:
Judging from other threads, creating a custom skin is the only way to get custom icons in menus.
Not really.
But thanks for your post
. Prompted me to separate the only change I ever make in standard_skin.zip to a dedicated, almost real custom skin.Showing topic replies 101 - 131.