Skip to content

Instantly share code, notes, and snippets.

@zachleat
Last active February 5, 2019 02:20

Revisions

  1. zachleat revised this gist Mar 11, 2016. 1 changed file with 3 additions and 2 deletions.
    5 changes: 3 additions & 2 deletions rwdurl
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,7 @@
    # My Chrome developer profile is in the `Profile 1` directory, make sure to update with yours.
    # Best on an ultra wide monitor.

    function rwdurl() {
    # My developer profile is in the “Profile 1” directory, make sure to update with yours.
    # Best on an ultra wide monitor.
    open -n -g -a "Google Chrome" --args --new-window --profile-directory=Profile\ 1 --app="data:text/html,<html><body><script>window.moveTo(0,0);window.resizeTo(320,1395);window.location='$1';</script></body></html>"
    open -n -g -a "Google Chrome" --args --new-window --profile-directory=Profile\ 1 --app="data:text/html,<html><body><script>window.moveTo(330,0);window.resizeTo(480,1395);window.location='$1';</script></body></html>"
    open -n -g -a "Google Chrome" --args --new-window --profile-directory=Profile\ 1 --app="data:text/html,<html><body><script>window.moveTo(815,0);window.resizeTo(640,1395);window.location='$1';</script></body></html>"
  2. zachleat created this gist Mar 10, 2016.
    9 changes: 9 additions & 0 deletions rwdurl
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    function rwdurl() {
    # My developer profile is in the “Profile 1” directory, make sure to update with yours.
    # Best on an ultra wide monitor.
    open -n -g -a "Google Chrome" --args --new-window --profile-directory=Profile\ 1 --app="data:text/html,<html><body><script>window.moveTo(0,0);window.resizeTo(320,1395);window.location='$1';</script></body></html>"
    open -n -g -a "Google Chrome" --args --new-window --profile-directory=Profile\ 1 --app="data:text/html,<html><body><script>window.moveTo(330,0);window.resizeTo(480,1395);window.location='$1';</script></body></html>"
    open -n -g -a "Google Chrome" --args --new-window --profile-directory=Profile\ 1 --app="data:text/html,<html><body><script>window.moveTo(815,0);window.resizeTo(640,1395);window.location='$1';</script></body></html>"
    open -n -g -a "Google Chrome" --args --new-window --profile-directory=Profile\ 1 --app="data:text/html,<html><body><script>window.moveTo(1460,0);window.resizeTo(800,1395);window.location='$1';</script></body></html>"
    open -n -g -a "Google Chrome" --args --new-window --profile-directory=Profile\ 1 --app="data:text/html,<html><body><script>window.moveTo(2265,0);window.resizeTo(1024,1395);window.location='$1';</script></body></html>"
    }