Enable Dual or Triple View both horizontally or vertically in Google Chrome

triple-vertical-column-view-small

(Click here to Enlarge)

triple-horizontal-row-view-small

(Click here to Enlarge)

I wrote about Dual Window View hack in Google Chrome a few days back and now I am writing about a hack which not only let you view windows in just two but three views and that too both horizontally & vertically. The methodology of both the tricks are same, the difference lies in the javascript code.

How to enable horizontal & vertical triple view in Google Chrome

Step #1 Enable Bookmarks bar in Google Chrome. Press Ctrl + B or Select Tool > Always show Bookmarks bar.

google-chrome

Step #2 Drag and drop the following link on the bookmarks bar.

Dual / Triple Vertical (Column) View

Dual / Triple Vertical (Column) View

triple-view-bookmarks

If for some reason the code from above buttons are not working then you can take the code from below:
Dual / Triple Vertical (Column) View

javascript:webstart=location.href;
web1=prompt('Choose Site 1',webstart);
web2=prompt('Choose Site 2',web1);
web3=prompt('Choose Site 3','');
if(web1 && web2 && web3){
NewWin= '\n';
NewWin+='';
NewWin+='';
NewWin+='';
NewWin+='';
with(document){
write(NewWin);
void(close())}
}
else{
if(web1 && web2){
NewWin= '\n';
NewWin+='';
NewWin+='';
NewWin+='';
with(document){
write(NewWin);
void(close())}
}
else{
void(null)
}
}

Dual / Triple Horizontal (Row) View

javascript:webstart=location.href;
web1=prompt('Choose Site 1',webstart);
web2=prompt('Choose Site 2',web1);
web3=prompt('Choose Site 3','');
if(web1 && web2 && web3){
NewWin= '\n';
NewWin+='';
NewWin+='';
NewWin+='';
NewWin+='';
with(document){
write(NewWin);
void(close())}
}
else{
if(web1 && web2){
NewWin= '\n';
NewWin+='';
NewWin+='';
NewWin+='';
with(document){
write(NewWin);
void(close())}
}
else{
void(null)
}
}

Either Right click on button & Edit the existing buttons or Create new button by right clicking on the bookmarks bar & selecting new page.

Step #3 Click on the corresponding button on the bar whenever you wish to enable dual or triple view in either fashion – horizontal / vertical.

Step #4 Enter the names of three sites you want to opened side by side. Make sure you enter in the format http://www.domainname.com or else it won’t work.

prompt1

prompt2

prompt3

Step #5 If you just want dual view, press enter when prompted for the third window and dual view will be enabled instead of triple view.

A big thanks to chinguetti for letting me know about it. How do you find the hack? Do share your thoughts with us.


Comments

2 responses to “Enable Dual or Triple View both horizontally or vertically in Google Chrome”

  1. shivansh Avatar
    shivansh

    nice application….
    quite useful too…

  2. @shivansh
    Thanks for your comment.