Sign up | Lost password? | Help

[ advanced search ]


Go to last post

Saturday, 24. June 2006, 23:18:29

Pesala

Reclining Buddha

avatar

Posts: 12777

UK

Opera 9 Buttons

Since some things have changed for Opera 9.x, We need another new Button thread. This is the old thread

This is the Opera Custom Button Maker. There are loads of custom buttons on the Wiki Site, and this is my button page which has a few more, a customized standard skin with extra icons, and explains a bit about making buttons. Tomu's page has some buttons for Opera 9.

If you have any great ideas for new buttons, post them in this thread using the {Opbut=Action, parameter 1, parameter 2, "Tooltip", "Icon"}Text{/opbut} code.¹

If you need help making buttons, post your requests here.
Please don't PM me — though I enjoy helping people, I prefer to do it only when I want to.

¹ Replace {curly brackets} with [square ones]. Parameters are optional, not all actions need them. Titles and icons are also optional. See the [Images] section of skin.ini for your skin to see the right name to use for the icon you wish to use.

To edit buttons posted here, quote the post, edit the code, and preview your post. Then drag the link to a toolbar or click it to add the button to your "My Buttons" custimize toolbar palette.

Thursday, 28. June 2007, 12:40:34

shoust

Operaised

avatar

Posts: 3016

United Kingdom

For going directly to the specified tab in site preferences.

button

button

button

button

button

Thursday, 28. June 2007, 12:59:12

ResearchWizard

not yet entitled

avatar

Posts: 380

Germany

Shoust, that's really cool and useful. It is remarkable that it works very quick. As I most often just want to change the network - identification I now can change my menu action with your mehtod to directly jump to the network tab (actually I need even this very rarely the last weeks).

I suppose soon you'll post how to select some entry there (e.g. Identify as Firefox) and click OK in one button :smile:

Friday, 29. June 2007, 00:51:10 (edited)

shoust

Operaised

avatar

Posts: 3016

United Kingdom

These buttons navigate through site preferences and do the actions then click OK in the site preferences dialog. However there won't be an indication of what mode the button is in though.

button

button -- That's if "Identify as opera" is the default.

button -- Same as above

button

button

button

button -- Set site to allow all popups.

button -- Same as above but popups appear in background for site.

button

button -- Selects "Accept cookies" for each site.

button -- Selects "Never accept cookies" for each site.

button -- Toggles setting "Delete new cookies when exiting opera" per site.

Thursday, 28. June 2007, 14:18:58

Can anyone please advise if there is a button available that will allow me to pause downloads in Opera 9, either website downloads or torrent file downloads? If so, how can I obtain it and intergrate it with Opera browser??

Thanks in advance...


:confused:

Thursday, 28. June 2007, 15:17:30

shoust

Operaised

avatar

Posts: 3016

United Kingdom

Stop transfer is essentially pause transfer, thats if you resume transfer after stopping. However some servers don't support resuming of downloads however.

Thursday, 28. June 2007, 21:37:42

Thanks, Shoust. I'm actually looking for a PAUSE button that would not stop the download entirely and have to recheck all the files again (particularly in torrent downloads) but allow me to resume the download straight away?

Would very much appreciate any help with this particular feature, if it is available??


:confused: :confused:

Friday, 29. June 2007, 00:47:13 (edited)

ResearchWizard

not yet entitled

avatar

Posts: 380

Germany

Originally posted by shoust:

These buttons navigate through site preferences and do the actions then click OK in the site preferences dialog. However there won't be an indication of what mode the button is in though.


That are great buttons (including your update). Using your method there seems to be another useful button to toggle Java Script in site preferences:

button


Edit: I should learn to look around as Shoust already posted this functionality with his "SP Script toggle" button. Well, I think it is the most useful and now you have just another name for it (if you want to edit the name of any button you can just do it by Quote, change the title text and Preview and drag it from there - as is mentioned in the very first post you can change anything by this).

Friday, 29. June 2007, 02:50:09

sgunhouse

Volunteer

avatar

Posts: 52781

Flag City, USA

Note that I might use "Cycle to previous tab" on a couple of those buttons to make them smaller.

Friday, 29. June 2007, 22:53:43

I'm still waiting to hear if anyone can help me locate a PAUSE button for Opera downloads - specifically torrent downloads, instead of having to STOP the download and wait again for it to check the entire list of files before resuming download(s). Can anyone please help??

Alternatively, is there a download manager plugin for Opera v9.21 that will allow me to pause torrent downloads instead of stopping them completely??

Thanks in advance!




alba.

Saturday, 30. June 2007, 00:44:19

shoust

Operaised

avatar

Posts: 3016

United Kingdom

Originally posted by alba13142003:

I'm still waiting to hear if anyone can help me locate a PAUSE button for Opera downloads - specifically torrent downloads, instead of having to STOP the download and wait again for it to check the entire list of files before resuming download(s). Can anyone please help??Alternatively, is there a download manager plugin for Opera v9.21 that will allow me to pause torrent downloads instead of stopping them completely??Thanks in advance!alba.



There isn't a pause button for opera downloads.

You could use another torrent client though, http://utorrent.com/ is the smallest torrent client around and suprisingly quite featureful for its size.

Then untick this setting and save (opera:config#BitTorrent|Enable) here

Then when the download dialog comes up for torrents again set it to open in utorrent.

Saturday, 30. June 2007, 02:04:20 (edited)

shoust

Operaised

avatar

Posts: 3016

United Kingdom

Here is some other ideas for you lot to try out. Want to switch to the next toolbar setup? Try this code in a gesture.

Show preferences,24 & focus next widget & Next item & Click default button


Same but for swtiching to previous toolbar setup.
Show preferences,24 & focus next widget & Previous item & Click default button


Switching to next menu setup.

Show preferences,24 & focus next widget & focus next widget & focus next widget & focus next widget & focus next widget & Next item & Click default button


Switching to previous menu setup.

Show preferences,24 & focus next widget & focus next widget & focus next widget & focus next widget & focus next widget & Previous item & Click default button


EDIT: Thanks for the heads up AyushJ :up:

Saturday, 30. June 2007, 01:47:06

shoust

Operaised

avatar

Posts: 3016

United Kingdom

Some buttons that needed some more code to work properly on text inputs.

button

button

button

Saturday, 30. June 2007, 01:57:38

AyushJ

avatar

Posts: 4754

shoust, you can use Show Preferences,24 to open the Preferences window with the Toolbars tab selected.

Saturday, 30. June 2007, 02:02:42

shoust

Operaised

avatar

Posts: 3016

United Kingdom

button

Setting the current url as homepage instantly.

Saturday, 30. June 2007, 10:28:06

Originally posted by shoust:

You could use another torrent client though, http://utorrent.com/ is the smallest torrent client around and suprisingly quite featureful for its size.



Thanks Shoust.

I already have µTorrent on board, but find it quite slow (even on the 2Mb broadband connection service I have with V*rg*n M*dia) to download the files I want. By comparison, Opera's torrent downloads are MUCH quicker and I would prefer to use Opera instead of µTorrent - Hence the request regarding a PAUSE button in Opera torrent downloads feature...

alba.


Saturday, 30. June 2007, 11:22:50 (edited)

Hi sgunhouse,

No the history panel button doesn't have a dropdown its just to give it the look of
the one in IE7 at the moment. RW's solution works for the first part to show the
History Panel and also show the tick beside History in my custom menu but when
you click it again it unselects History and hides the tick from the menu but it
doesn't close the whole panel as I want it to, but instead only hides the history panel.


cheers
blinky

P.S. Is there anyway I could add a dropdown menu to the History Panel Button?

Sunday, 1. July 2007, 16:50:06

shoust

Operaised

avatar

Posts: 3016

United Kingdom

button

Put this on your bookmarks panel/manager toolbar, this will toggle if the bookmark will show in panel.

Sunday, 1. July 2007, 17:21:56

shoust

Operaised

avatar

Posts: 3016

United Kingdom

Buttons to delete specific parts of delete private data.

button

button

button

^^To clear all cookies, cache, visited and typed history.

button

^^ To clear temporary cookies,all cache, visited and typed history

button

^^ Clears everything(means everything ticked) in clear private data dialog.

Sunday, 1. July 2007, 18:58:09

shoust

Operaised

avatar

Posts: 3016

United Kingdom

button

Button to go directly to My buttons section, to get ready to drag buttons stored there onto a toolbar.

Sunday, 1. July 2007, 22:39:17 (edited)

shoust

Operaised

avatar

Posts: 3016

United Kingdom

button

button

button

button

button
button

Smaller versions of buttons in a previous post (my-opera won't let me edit the post before so..)

And here is one or two more.

button

button

Monday, 2. July 2007, 19:05:58

shoust

Operaised

avatar

Posts: 3016

United Kingdom

button

Mistake in the previous button, this should focus the general tab always then choose the current url as homepage.

Tuesday, 3. July 2007, 05:37:24

Nxqd3051990

GTD

avatar

Posts: 177

Viet Nam

shoust: Thanks so much for your great work, everyday :smile:
nXqd

Tuesday, 3. July 2007, 05:51:37

sgunhouse

Volunteer

avatar

Posts: 52781

Flag City, USA

Originally posted by shoust:

button

Mistake in the previous button, this should focus the general tab always then choose the current url as homepage.



Isn't there already a "Set homepage" command? Yes, but it doesn't automatically use the current page - it brings up a dialog. Still, may be better than using Preferences.

Tuesday, 3. July 2007, 08:42:52

tomu

ttt-buttons and skins

avatar

Posts: 787

Switzerland

Shoust`s way - to make available `Clicking tours` in preferences dialogs; but with one click - is ok. There`s no doubt that this way extends the possibilities to make useful buttons. It`s a lot of work and not that easy as it looks; Opera waits there with some buggy behaviour patterns and `mantraps`. Such buttons may also fail in future dialog versions, but ...

for now it is a marvellous and pleasant chance to enhance Opera

Thanks to Shoust


tomu
ttt-skins and buttons

Wednesday, 4. July 2007, 01:16:52

Hi Tomu,

On your web page you have a button which shows the Fraud Protection Dialog and
toggles the Fraud Protection checkbox on/off. I was wondering if it is possible to
have a button which would show the Fraud Protection dialog as before but instead
only toggles off the Fraud Protection checkbox not toggles it on/off?.

cheers mate
blinky

Wednesday, 4. July 2007, 02:12:40

Nxqd3051990

GTD

avatar

Posts: 177

Viet Nam

Can we have restart Opera button ?
nXqd

Wednesday, 4. July 2007, 06:27:02

w2phoenix

Support Opera

avatar

Posts: 180

yes.. i also want restart button..

Wednesday, 4. July 2007, 07:38:50

tomu

ttt-buttons and skins

avatar

Posts: 787

Switzerland

Nxqd3051990 / W2phoenix

About a `Restart` button:

With Opera`s own commands it`s not possible; if Opera is terminated once it`s indeed terminated and you cannot expect that following commands will be executed.

I can imagine a button that starts an external little program which is able to quit Opera, to wait the necessary time in order to save Opera`s settings and then to start Opera again. But:

- I don`t no if it is possible to quit Opera from outside
- I have no idea how to pause such a program the necessary time
- I`m not a programmer and not able to produce such a thing
- I don`t no if it is possible in general

:cry:

tomu
ttt-skins and buttons

Wednesday, 4. July 2007, 10:32:02

ResearchWizard

not yet entitled

avatar

Posts: 380

Germany

For the restart button I agree with Tomu, that for the start procedure an external application is needed. The shutdown should be done from inside Opera. I'd think it's easy to have a button that quits Opera & calls an external .bat file that does pause a certain amount of time and then starts Opera. But as I don't want to wait a long time every time I use this button the wait time should be different depending on how long Opera needs to shut down (there might be an error message if Opera is restarted too early). So I don't think a simple .bat file would be enough and instead the external program needs to look whether the Opera process is still running. Or you can have user interaction that the external program just waits as long as the user presses enter in the external application. But this would be pretty much the same as normal start of Opera.

I could do the bat file but I don't have the skills (and time) to write the more sophisticated program looking for the process list. And I doubt the bat file is really useful.

I'd be interested what for you need the restart Opera. Most of the setting changes don't need a restart and the memory consumption should be pretty low even after a long Opera session (except for virtual memory on HDD).

Wednesday, 4. July 2007, 10:44:23 (edited)

tomu

ttt-buttons and skins

avatar

Posts: 787

Switzerland

Blinky


I hope to understand right; you like to have a button which disables fraud protection and displays then the security/fraud protection dialog (one click), right?

On the TTT-Buttons page I offer a button which displays the dialog only and another button which toggles fraud protection completely On/Off.

There are 4 possibilities to enable/disable fraud protection or parts of it:

1. The checkbox in Tools - Preferences - Advanced - Security; enables/disables fraud protection, but in the addressfield you see still the icon, so it is not `completely disabled`. This checkbox corresponds to the entry "Security Prefs > Enable Trust Rating = 1 or 0" in Opera`s Preferences editor (reachable with opera:config in the addressfield). Besides the checkbox corresponds to the one in the fraud protection dialog.
2. The second possibility is, only to disable the fraud protection icon in the addressfield. So fraud protection is enabled, but you have no control icon in the addressfield. This option you find only as entry "Security Prefs > Enable Trust Button = 1 or 0" in the Preferences editor. That makes no sense in my opinion: protection yes but no control - that`s not the meaning.
3. Completely disabled is fraud protection if you set both options to `0`; no fraud protection, no icon. That`s what I do with the toggle on TTT-Buttons mentioned above.
4. To use the command `Show security information` which displays the fraud protection dialog (with checkbox there). That`s the same as if you click the icon in the addressfield.

For the following buttons I combined the switches from the preferences editor with the info command.

- Here the button to disable fraud protection first (the icon stays) and then to display the dialog: button
Hold in mind that you have to use the chechbox mentioned above or the checkbox in the dialog to reenable fraud protection, or use: button

- And here a button to disable fraud protection completely first (icon disabled too) and then to display the dialog: button
Hold in mind that you have to use the checkbox mentioned and in addition to set "Security Prefs > Enable Trust Button = 1" in the preferences editor in order to reenable fraud protection completely, or use: button

Please do not use both sort of buttons together; the one cannot display the proper state of the other and vice versa. Unfortunately it is also not possible to make a button for Off/Activate and displaying the dialog for both circumstances.

Besides: the buttons displays the title in the chosen language

:beer:

tomu
ttt-skins and buttons

Wednesday, 4. July 2007, 12:36:29

shoust

Operaised

avatar

Posts: 3016

United Kingdom

For some sort of restart button (windows only).

button

Save this code as "restart.bat" in your Program files/Opera folder.

@echo off
ping 127.0.0.1 -n 7
start opera.exe


What it does is that the button exits opera, waits 7 seconds and starts opera again.

Wednesday, 4. July 2007, 12:48:18

tomu

I can imagine a button that starts an external little program which is able to quit Opera, to wait the necessary time in order to save Opera`s settings and then to start Opera again.


Sample:
Button20, "Restart"="Execute program, "D:\Opera\misc\restart.vbs",,,"Close" & Exit"

restart.vbs
Dim Wsh 
Set Wsh = WScript.CreateObject("WScript.Shell") 
' Sleep 10 sec
WScript.Sleep 10*1000
Wsh.Exec "D:\Opera\Opera.exe"

Wednesday, 4. July 2007, 13:23:40

ResearchWizard

not yet entitled

avatar

Posts: 380

Germany

Originally posted by shoust:

waits 7 seconds


I read "ping 127.0.0.1 -n x" will wait x-1 Seconds and therefore your nice example will probably wait 6 seconds.

Wednesday, 4. July 2007, 13:27:08

Hi Tomu,

Yes mate you guessed right on what I wanted and your button works exactly
as I hoped thank you very much. As always thanks for your help and support.


cheers
blinky :D

Wednesday, 4. July 2007, 13:52:53

Nxqd3051990

GTD

avatar

Posts: 177

Viet Nam

Originally posted by shoust:

For some sort of restart button (windows only).

button

Save this code as "restart.bat" in your Program files/Opera folder.

@echo off
ping 127.0.0.1 -n 7
start opera.exe


What it does is that the button exits opera, waits 7 seconds and starts opera again.


Smart :smile:
thanks

Wednesday, 4. July 2007, 16:22:11 (edited)

AyushJ

avatar

Posts: 4754

button

Drag the button to a toolbar and save the attached VBS in your Opera folder (not profile folder but your program files\opera folder).

Restart

This vbscript waits until opera's process is closed (+1 sec) then starts opera :smile:

Wednesday, 4. July 2007, 17:22:46 (edited)

tomu

ttt-buttons and skins

avatar

Posts: 787

Switzerland

Ok guys, thanks to all. Here my corrected favorites for `Restart Opera` (Windows only!)


Shoust`s solution tells me; I have to wait
Here the button with the image for `reload`: button
And here the corrected code you have to save as `restart.bat` in the same folder as your Opera.exe:
@echo off
ping 127.0.0.1 -n 8
start opera.exe


AyushJ`s solution tells me nothing, but it waits not more than necessary
Here the correct button with the image for `reload`: button
And here the code you have to save as `restart.vbs` in the same folder as your Opera.exe:
opera=left(wscript.scriptfullname,instrrev(wscript.scriptfullname,"\"))&"opera.exe"
cimv2="winmgmts:\\.\root\cimv2"
Set wmi=GetObject(cimv2)
Set notif=wmi.ExecNotificationQuery("Select * From __InstanceDeletionEvent Within 1 Where TargetInstance ISA 'Win32_Process'")
Set procs=wmi.ExecQuery("Select * from Win32_Process Where ExecutablePath='"& replace(opera,"\","\\") &"'",,48)
For each proc in procs:i=1:exit for:Next
Do While i
    Set proc=notif.NextEvent.TargetInstance
    If lcase(proc.ExecutablePath)=lcase(opera) then i=0
Loop
WScript.Sleep 1000
GetObject(cimv2 & ":Win32_Process").Create opera,null,null,pid


Perhaps someone knows how to implement a small reminder into Ayushj`s code (waiting for Opera)?


:happy:

tomu
ttt-skins and buttons

Thursday, 5. July 2007, 21:17:25

tomu

ttt-buttons and skins

avatar

Posts: 787

Switzerland

More than 2000 Drag and drop buttons on the TTT-Buttons page

Please note the possibility to create a proper working sidebar now; with the complete table of contents for the TTT-Buttons page. Links, clicked on the sidebar/panel, opens the concerning button-sections in a normal main tab.

Click here in order to create the sidebar and follow the link...


tomu
ttt-skins and buttons

Thursday, 5. July 2007, 21:36:24

Saddle Magic

Psycho Chicken What_The_Cluck!

avatar

Posts: 19081

Thank you Tomu :up: looks great :smile:

Thursday, 5. July 2007, 22:57:06

ResearchWizard

not yet entitled

avatar

Posts: 380

Germany

Yes Tomu, looks really great :up:

Friday, 6. July 2007, 07:35:32

AyushJ

avatar

Posts: 4754

Nice sidebar, thanks Tomu :smile:


New blank page buttons(without speed dial) :

Page title is "Speed dial" :frown: :
button

Page title is "Blank page" :smile: :
button

Click=New blank page, Long click=New page (with sd) :
button
button

Click=New page, Long click=New blank page:
button
button

Friday, 6. July 2007, 09:35:53

Nexus009

Vagabondo Dell'Infinito

avatar

Posts: 1650

Nuova Atlantide -Italy-

show speed dial in corrent tab and focus in address field
button

Friday, 6. July 2007, 22:46:20 (edited)

shoust

Operaised

avatar

Posts: 3016

United Kingdom

button

Button that toggles between SDI and MDI.

And a button to toggle fontsize(No its not zoom) p:

button

Monday, 9. July 2007, 13:01:53

Request:

A button to clear all completed downloads. Doesn't seem like anyone has asked for this yet, but for me it's a hassle to have to "delete" each completed download after it finishes. And so far as I can tell there isn't any way to set "clear completed" in the preferences.

Monday, 9. July 2007, 13:36:08

Aha! Thanks very much AyushJ.

Monday, 9. July 2007, 13:37:26

Follow-up. Is there any way to edit that button so that it's action doesn't close the transfer window?

Monday, 9. July 2007, 13:41:59

AyushJ

avatar

Posts: 4754

Opens Manage Transfers tab & Clears finished downloads :
button

Monday, 9. July 2007, 13:49:01

Thanks AyushJ. Works great. As a random suggestion to make that button even more functional. Can you build in a condition that, if there are no other active downloads, it closes, but if there are active downloads it remains open? Not sure if that's possible, but it would make the button that much more functional. Thanks again.

Forums » Opera Community » General Opera topics » Customizing Opera