Discussions » Creation Requests

Window position

§
Posted: 11.08.2014

Window position

I reposition Firefox windows using a custom button with this code:

x=1595;
y=825;
l=0;
t=50;
window.resizeTo(x,y);
window.moveTo(l,t);

I would like a Greasy Fork script which would run this code for every Firefox window.
I have small resource window at the top of my screen I want to keep visible.
That program's "Always on Top" function does not work well since I started
using Windows 8.1.

Thank you.

§
Posted: 11.08.2014

Hi,

Since Firefox 7, it's no longer possible for a web site to move a window in a browser
https://developer.mozilla.org/en-US/docs/Web/API/Window.moveTo

Try window.open
https://developer.mozilla.org/en-US/docs/Web/API/window.open

Regards
Reek

§
Posted: 11.08.2014

I am not trying to have a website move the window. I want a GF script that will automatically run that code when a window opens the same as manually clicking the button. Thanks.

Post reply

Sign in to post a reply.