Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Applications > Mac Applications and Mac App Store

Reply
 
Thread Tools Search this Thread Display Modes
Old Apr 20, 2007, 11:06 PM   #1
sadatkarim
macrumors member
 
Join Date: Sep 2004
Stop Safari Window Resize?

Is there anyway to force Safari to not resize the window when clicking a javascript link that automatically sets it to resize? In this case, this facebook shortcut which I have on my bookmarks toolbar constantly makes my entire window really small.

Or is there anyway someone can edit this code to make it so it won't force resize Safari?

Thanks!

javascript:var%20d=document,f='http://www.facebook.com/share',l=d.location,e=encodeURIComponent,p='.php?src=bm&v=4&i=1177123542&u='+e(l.href)+'&t='+e(d.tit le);try{if(!/^(.*\.)?facebook\.[^.]*$/.test(l.host))throw(0);share_internal_bookmarklet(p)}catch(z){a=function(){if(!window.open(f+'r'+p,' sharer','toolbar=0,status=0,resizable=0,width=626,height=436'))l.href=f+p};if(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else{a()}}void(0)

Last edited by sadatkarim; Apr 20, 2007 at 11:13 PM.
sadatkarim is offline   0 Reply With Quote
Old Apr 21, 2007, 08:26 AM   #2
Winterfell
macrumors regular
 
Join Date: Apr 2007
Location: Tulsa, Oklahoma
That's why I use Firefox: it has an option to not allow sites to resize windows, which is very nice. I could not find any similar options in Safari.

As for that javascript, if you change the resizable parameter from 0 to 1, it should allow you to resize the popup window. You can also change the width and hight with the parameters directly after.

javascript:var%20d=document,f='http://www.facebook.com/share',l=d.location,e=encodeURIComponent,p='.php?src=bm&v=4&i=1177123542&u='+e(l.href)+'&t='+e(d.tit le);try{if(!/^(.*\.)?facebook\.[^.]*$/.test(l.host))throw(0);share_internal_bookmarklet(p)}catch(z){a=function(){if(!window.open(f+'r'+p,' sharer','toolbar=0,status=0,resizable=1,width=626,height=436'))l.href=f+p};if(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else{a()}}void(0)
__________________
Colin Anderson
Ambition is a poor excuse for those
without sense enough to be lazy.

We Never Forgot | Seldom Updated
Winterfell is offline   0 Reply With Quote
Old Feb 5, 2008, 12:17 PM   #3
slefkoff
macrumors newbie
 
Join Date: Jun 2007
BUMP

Any way to prevent safari from resizing windows?
slefkoff is offline   0 Reply With Quote
Old May 25, 2008, 02:43 PM   #4
Kilamite
macrumors G3
 
Kilamite's Avatar
 
Join Date: Mar 2007
Location: Edinburgh, Scotland
I'm going to bump this too - I hate sites that resize and move my window.

Mininova does this - sometimes full screens the Safari window, or just moves it.
__________________
15" MacBook Pro 2GHz i7 8GB 750GB Hybrid | Mac mini 2.3GHz i7 16GB 1TB Fusion | OS X 10.10
iPhone 5 64GB | Apple TV 3 1080p | iOS 7.1.2
Home Theatre Hackintosh i3 3.5GHz 4GB 3TB | OS X 10.9.2
Kilamite is offline   0 Reply With Quote
Old May 25, 2008, 02:56 PM   #5
Osarkon
macrumors 68020
 
Osarkon's Avatar
 
Join Date: Aug 2006
Location: Wales
Send a message via AIM to Osarkon
Quote:
Originally Posted by Kilamite View Post
I'm going to bump this too - I hate sites that resize and move my window.

Mininova does this - sometimes full screens the Safari window, or just moves it.
Although not really a proper solution, disabling Javascript sorts that problem out. It also noticeable increases the speed of page loading on Mininova.
Osarkon is offline   0 Reply With Quote
Old Dec 3, 2008, 04:31 PM   #6
tejaykay
macrumors regular
 
Join Date: Oct 2008
Location: Edinburgh
Safari Size Guardian

Does the job.

http://www.manytricks.com/safarisizeguardian/
__________________
15" MBP | 32GB iPhone | 32GB iPad
tejaykay is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Applications > Mac Applications and Mac App Store

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Window has gone off the screen - can't move or resize it! RedSunshine Mac Basics and Help 5 Jun 28, 2014 06:48 PM
How do I stop stop the annoying email notification sound in Safari kmdonovan1 Mac Basics and Help 4 Mar 18, 2014 04:52 AM
Can't drag to resize window full screen horizontally eternalhack OS X Mavericks (10.9) 2 Jan 5, 2014 05:27 PM
My uploader window won't resize to a smaller size gabespf OS X 0 Dec 16, 2012 08:47 PM
Window flickers in Safari when resizing window Pegbiter OS X 0 Jun 13, 2012 08:14 AM

Forum Jump

All times are GMT -5. The time now is 04:57 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC