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.9.2
iPhone 5 64GB | Apple TV 3 1080p | iOS 7.1
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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
Safari window flickers when resizing? berkleeboy210 MacBook Pro 1 Mar 25, 2012 11:37 PM
Safari window resizing behind the dock kaixi Mac Basics and Help 4 Sep 15, 2011 05:47 PM
Stop Safari remembering previous open windows & tabs rcanpolat Mac OS X 10.7 Lion 6 Jul 24, 2011 05:03 PM
Safari on WinXP: Diminishes OS Performance johnnyxhuynh Community Discussion 2 Jan 21, 2011 11:40 AM
Safari - Resize image to fit window Jaster OS X 1 Jan 21, 2010 08:19 PM


All times are GMT -5. The time now is 07:13 PM.

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

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