Sign up | Lost password? | Help

[ advanced search ]

My Wishlist =) [Some zoom related features and other things]

Forums » Opera Community » Opera for desktop » Desktop wish-list

Go to last post

Thursday, 14. June 2007, 08:36:22

RobeXYZ

avatar

Posts: 6

My Wishlist =) [Some zoom related features and other things]

-A zoom options menu to modify the size of the image that you right clicked. Just like this http://imagezoom.yellowgorilla.net/forums/
-"Block this image" option in the right click menu.
-"Send picture" in the right click menu.
-"Open image in new tab" in the right click menu.
-A toolbar with options just like this: http://chrispederick.com/work/web-developer/
-A right click acces to text only size change. Something like:
Right click>Text>Enlarge Text Size
Right click>Text>Reduce Text Size
Right click>Text>Default Text Size

I think that's all =) Thanks

Thursday, 14. June 2007, 13:09:03 (edited)

AyushJ

avatar

Posts: 4754

welcome to myopera community !

See this if you dont know how to modify menu files : http://operawiki.info/EditingINIFiles

Originally posted by RobeXYZ:

-"Open image in new tab" in the right click menu.


Add to standard_menu.ini in [Image Popup Menu] section:
Item, "Open image in new tab"=New page,1,,,"Blank" & Open image


Originally posted by RobeXYZ:

-A toolbar with options just like this: http://chrispederick.com/work/web-developer/


http://operawiki.info/WebDevToolbar

Thursday, 14. June 2007, 13:09:42 (edited)

AyushJ

avatar

Posts: 4754

Originally posted by RobeXYZ:

-A zoom options menu to modify the size of the image that you right clicked.


add in [image popup menu] section-
Item, "Set Size.."=Copy image address & Go to page, "javascript:(function(){for(var clipbIMG=('%c'),ims=document.images,iX=ims.length,curr;curr=ims[--iX];)if(curr.src==clipbIMG)break;if(!curr)return alert('image not found!');var prmp=(prompt('Set Image Width/Height : \n\n '+(curr.def1||''),curr.offsetWidth+'px/'+curr.offsetHeight+'px')||'').split('/');if(prmp.length<2)return;curr.def1=curr.def1||'Original Size- '+curr.offsetWidth+'/'+curr.offsetHeight+' pixels' ;var rxp=new RegExp('^.*?(\\d+(px|em|%|ex|in|cm|mm|pt|pc)?).*$','i');curr.style.setProperty('width',prmp[0].replace(rxp,'$1')+(RegExp.$2?'':'px'),'!important');curr.style.setProperty('height',prmp[1].replace(rxp,'$1')+(RegExp.$2?'':'px'),'!important');curr.style.setProperty('max-width','none','important');curr.style.setProperty('max-height','none','important');curr.style.minWidth='';curr.style.minHeight='';})()"

Thursday, 14. June 2007, 13:25:34

Ti

♡.. (^_^);

avatar

Posts: 223

France

Originally posted by RobeXYZ:

— « Open image in new tab » in the right click menu.


Just right-click « Open image » while pressing SHIFT key (this is a general behaviour like SHIFT+CTRL which opens in background tab. You can SHIFT+ENTER in the address bar, well everywhere…).

Thursday, 14. June 2007, 22:41:13 (edited)

RobeXYZ

avatar

Posts: 6

Originally posted by AyushJ:


Originally posted by RobeXYZ:

-A toolbar with options just like this: http://chrispederick.com/work/web-developer/


http://operawiki.info/WebDevToolbar




I'll try to modify the ini files later =) anyway it'll be nice to have those options since you install opera without any further modification.

And about that toolbar... it is ugly LOL
and lacks A LOT OF options the toolbar I linked has.

EDIT:
The set size option is just a part of what I wanted. By Zoom menu I was talking about somehting like this:

Sunday, 17. June 2007, 02:50:42 (edited)

AyushJ

avatar

Posts: 4754

Originally posted by RobeXYZ:

By Zoom menu I was talking about somehting like this:



- Add
Submenu, "Zoom", Image Zoom Menu
in Image Popup Menu section

- Download setVarOnRightClick.js UserJS to your UserJS folder.

- Add

[Image Zoom Menu]
Item, "Zoom In"=Go to page, "javascript:o.i.style.width=o.w*1.2+o.e;o.i.style.height=o.h*1.2+o.e;o=o.o",1,,"Zoom"
Item, "Zoom Reset"=Go to page, "javascript:if(o.i.origSize){o.i.style.width=o.i.origSize[0]+o.e;o.i.style.height=o.i.origSize[1]+o.e};o=o.o",1,,"Caption Restore"
Item, "Zoom Out"=Go to page, "javascript:o.i.style.width=o.w/1.2+o.e;o.i.style.height=o.h/1.2+o.e;o=o.o",1,,"Sort Descending"
--------------------1
Item, "Custom Zoom"=Go to page, "javascript:o.UIN=(prompt('Enter Zoom '+String.fromCharCode(37)+' :',Math.ceil(o.h/o.i.origSize[1]*100)+'%')||'').replace(/\D/g,'');if(!o.UIN)return;o.UIN=o.UIN/100;o.i.style.width=o.UIN*o.i.origSize[0]+o.e;o.i.style.height=o.UIN*o.i.origSize[1]+o.e;o=o.o",1,,"b"
Item, "Custom Dimensions"=Go to page, "javascript:o.UIN=prompt('Set image size-',o.w+'px/'+o.h+'px');if(!o.UIN)return;o.UIN=o.UIN.split('/');o.i.style.width=(o.UIN[0])?o.UIN[0]+' !important':'';o.i.style.height=o.UIN[1]?o.UIN[1]+' !important':'';o=o.o",1,,"blank"
--------------------2
Item, "50%"=Go to page, "javascript:o.i.style.width=50/100*o.i.origSize[0]+o.e;o.i.style.height=50/100*o.i.origSize[1]+o.e;o=o.o",1,,"blank"
Item, "60%"=Go to page, "javascript:o.i.style.width=60/100*o.i.origSize[0]+o.e;o.i.style.height=60/100*o.i.origSize[1]+o.e;o=o.o",1,,"blank"
Item, "75%"=Go to page, "javascript:o.i.style.width=75/100*o.i.origSize[0]+o.e;o.i.style.height=75/100*o.i.origSize[1]+o.e;o=o.o",1,,"blank"
Item, "90%"=Go to page, "javascript:o.i.style.width=90/100*o.i.origSize[0]+o.e;o.i.style.height=90/100*o.i.origSize[1]+o.e;o=o.o",1,,"blank"
--------------------4
Item, "100%"=Go to page, "javascript:o.i.style.width=100/100*o.i.origSize[0]+o.e;o.i.style.height=100/100*o.i.origSize[1]+o.e;o=o.o",1,,"Search Web"
--------------------3
Item, "110%"=Go to page, "javascript:o.i.style.width=110/100*o.i.origSize[0]+o.e;o.i.style.height=110/100*o.i.origSize[1]+o.e;o=o.o",1,,"blank"
Item, "125%"=Go to page, "javascript:o.i.style.width=125/100*o.i.origSize[0]+o.e;o.i.style.height=125/100*o.i.origSize[1]+o.e;o=o.o",1,,"blank"
Item, "140%"=Go to page, "javascript:o.i.style.width=140/100*o.i.origSize[0]+o.e;o.i.style.height=140/100*o.i.origSize[1]+o.e;o=o.o",1,,"blank"
Item, "150%"=Go to page, "javascript:o.i.style.width=150/100*o.i.origSize[0]+o.e;o.i.style.height=150/100*o.i.origSize[1]+o.e;o=o.o",1,,"blank"

at the end of file.

Restart opera.

the menu in opera :

Sunday, 17. June 2007, 01:48:39

RobeXYZ

avatar

Posts: 6

Thanks AyushJ =D
but the 50% 60% 150% 100% etc... only change the horizontal size of the image =P

Sunday, 17. June 2007, 02:35:52

AyushJ

avatar

Posts: 4754

Originally posted by RobeXYZ:

but the 50% 60% 150% 100% etc... only change the horizontal size of the image =P



Homer: Doh! It should work now. Just paste the new(fixed) [Image Zoom Menu] section(from my previous post) over the old one and restart opera.

Forums » Opera Community » Opera for desktop » Desktop wish-list