Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

sadatkarim

macrumors member
Original poster
Sep 11, 2004
40
0
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)
 
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)
 
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.
 
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.