Stop Safari Window Resize?

Discussion in 'Mac Apps and Mac App Store' started by sadatkarim, Apr 20, 2007.

  1. sadatkarim macrumors member

    Sep 11, 2004
    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?


  2. Winterfell macrumors regular

    Apr 3, 2007
    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='',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(;share_internal_bookmarklet(p)}catch(z){a=function(){if(!'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)
  3. slefkoff macrumors newbie

    Jun 6, 2007

    Any way to prevent safari from resizing windows?
  4. kolax macrumors G3

    Mar 20, 2007
    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.
  5. Osarkon macrumors 68020


    Aug 30, 2006
    Although not really a proper solution, disabling Javascript sorts that problem out. It also noticeable increases the speed of page loading on Mininova.

Share This Page