Created
November 18, 2019 12:34
-
-
Save gazambuja/c50acb629614d484201c2ea922de6691 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Enable two page view in google docs | |
var newWidth = document.getElementsByClassName('kix-zoomdocumentplugin-outer')[0].style.width.replace('px','') *2 +10 +'px'; | |
document.getElementsByClassName("kix-paginateddocumentplugin")[0].style.width = newWidth; | |
var pages = document.getElementsByClassName("kix-page"); | |
for (var i = 0; i < pages.length; i++) { | |
if(i==0) { | |
pages[0].parentNode.width = newWidth; | |
} | |
pages[i].style.float = "left"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
confirm does not work. can someone find the new element name for: kix-zoomdocumentplugin-outer