Stop Safari Window Resize?

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

  1. sadatkarim
    Expand Collapse
    macrumors member

    Joined:
    Sep 11, 2004
    #1
    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.title);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)
     
  2. Winterfell
    Expand Collapse
    macrumors regular

    Joined:
    Apr 3, 2007
    Location:
    Tulsa, Oklahoma
    #2
    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)
     
  3. slefkoff
    Expand Collapse
    macrumors newbie

    Joined:
    Jun 6, 2007
    #3
    BUMP

    Any way to prevent safari from resizing windows?
     
  4. Kilamite
    Expand Collapse
    macrumors G3

    Kilamite

    Joined:
    Mar 20, 2007
    #4
    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
    Expand Collapse
    macrumors 68020

    Osarkon

    Joined:
    Aug 30, 2006
    Location:
    Wales
    #5
    Although not really a proper solution, disabling Javascript sorts that problem out. It also noticeable increases the speed of page loading on Mininova.
     
  6. tejaykay
    Expand Collapse
    macrumors 6502

    tejaykay

    Joined:
    Oct 22, 2008
    Location:
    Edinburgh

Share This Page