使用用户脚本调整大小 window
resize window with user script
如何从 Tampermonkey/Greasemonkey 脚本调整当前 Chrome 或 Firefox window 的大小。我试过了
window.resizeTo(1000, 500);
,但由于某种原因它不起作用。
有什么想法吗?
See this demo on w3schools site
You can't resize a window or tab that wasn’t created by window.open.
You can't resize a window or tab when it’s in a window with more than
one tab.
如何从 Tampermonkey/Greasemonkey 脚本调整当前 Chrome 或 Firefox window 的大小。我试过了
window.resizeTo(1000, 500);
,但由于某种原因它不起作用。 有什么想法吗?
See this demo on w3schools site
You can't resize a window or tab that wasn’t created by window.open.
You can't resize a window or tab when it’s in a window with more than one tab.