免费视频淫片aa毛片_日韩高清在线亚洲专区vr_日韩大片免费观看视频播放_亚洲欧美国产精品完整版

打開APP
userphoto
未登錄

開通VIP,暢享免費電子書等14項超值服

開通VIP
How to Set the Window Size and Position of a Chrome Application Shortcut

Now that I’ve moved into the Android world, I’ve been using Google/Gmail’s “Tasks” feature to keep track of my To Do Lists.  I prefer this method to a separate stand-alone ToDo app because it’s clean & simple, and it’s one less app to manage.

I created a Chrome Application Shortcut to my Task List for easy desktop access to my To Do lists, but was dismayed to discover that the window that opened was much larger than I wanted, and it was always in an inconvenient position.  I would have to resize & move the window each time I used the Application Shortcut, because Chrome never seemed to remember the previous window settings.

I searched around for a guide on how to set the window size for application shortcuts, and to my surprise, there are no solutions out there.  Not only does the “Application Shortcut” feature lack this functionality, but Chrome itself doesn’t even have a startup switch for setting the window size.  Both seem like they’d be pretty essential features for “Application Shortcuts” to be useful, don’t you think?

I created my own method of automatically setting the window size and position using an intermediary javascript file.  It sets the window size & position, then loads your preferred target URL.  Here’s how to do it.

Step One:  Create the Application Shortcut as you normally would.

In my case, I wanted to create an Application Shortcut to Gmail’s Tasks, so I browsed to the appropriate page:

https://mail.google.com/tasks/ig

And in Chrome, choose Wrench->Tools->Create Application Shortcuts.

Step Two: Create the intermediary HTML file on your local computer.

Next, you need to create a local HTML file on your computer that resizes the window, moves it to the desired position, and then redirects to your application shortcut URL.  Here’s the file you’ll need to create:

  1. <html>  
  2. <head>  
  3. <script language="JavaScript">  
  4. window.resizeTo(300,400);  
  5. window.moveTo(1380,0);  
  6. window.location = "https://mail.google.com/tasks/ig";  
  7. </script>  
  8. </head>  
  9. <body>  
  10. <h1>If you see this, the redirect did not work properly.</h1>  
  11. </body>  
  12. </html>  

Edit the file to reflect the size & position you’d like to set.  The format is window.resizeTo(WIDTH, HEIGHT) and window.moveTo(X POSITION, Y POSITION).  If you don’t want to set an initial startup position, just remove the window.moveTo line.

You’ll also have to set the redirect target. The one listed in the above example is the one you’ll want to use for the Gmail Tasks application. To get the link for other applications, check the properties of the shortcut that you created in step 1.

Save the file somewhere where it won’t get deleted & remember the name & location.  I created a directory within “My Documents”  called “Google Tasks Shortcut” and named the file “google_tasks_launcher.html”.

Step Three:  Change the Application Shortcut to point to the intermediary file.

Now edit the Application Shortcuts you created in Step 1 to instead point to the intermediary HTML/javascript file.  Right click on the shortcut and choose “Properties.”  Then from the shortcut tab, change the Target field to point to the file you created in Step 2.

You need to change the value after the “-app” switch.  In my case, I changed it as follows.

Old Value:

“C:\Documents and Settings\eddie\Local Settings\Application Data\Google\Chrome\Application\chrome.exe”  –app=https://mail.google.com/tasks/ig

New Value:

“C:\Documents and Settings\eddie\Local Settings\Application Data\Google\Chrome\Application\chrome.exe”  –app=file:///C:/Documents%20and%20Settings/eddie/My%20Documents/Google
%20Tasks%20Shortcut/google_tasks_launcher.html

I’ve bolded the parts that have changed.

You can also change the Application Shortcut icon on this screen if that strikes your fancy.

Hit “OK” and you should be set.  Your shortcut should now open at the size & position specified in the javascript portion of the HTML file.

本站僅提供存儲服務(wù),所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請點擊舉報
打開APP,閱讀全文并永久保存 查看更多類似文章
猜你喜歡
類似文章
使用Visual Studio Code打開瀏覽器查看HTML文件
Setting a key shortcut to run an application in GNOME :: Fedora Docs Site
Web App Manifest: Open Websites Like Native Apps on Mobile Devices
【推薦】Google Tasks 同步方法匯總 | 同步控
How to easily remove Delta-Homes.com virus (Removal Guide)
【影刀RPA】如何讓影刀操作谷歌多用戶 實現(xiàn)多店鋪切換
更多類似文章 >>
生活服務(wù)
分享 收藏 導(dǎo)長圖 關(guān)注 下載文章
綁定賬號成功
后續(xù)可登錄賬號暢享VIP特權(quán)!
如果VIP功能使用有故障,
可點擊這里聯(lián)系客服!

聯(lián)系客服