Created
July 20, 2018 13:44
-
-
Save jacksonfdam/b885acb0eaa3b386d32513a5abafcd37 to your computer and use it in GitHub Desktop.
Bookmarklet - Para exibir a Board do RunRunIt em fullscreen sem as barras desnecessárias.
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
Acessar: | |
https://mrcoles.com/bookmarklet/ | |
<a class="bookmarklet" href="javascript:(function()%7B(function%20()%20%7Bdocument.querySelector('.is-collapsed%3Anot(.off-canvas)%20.basic-page').style.paddingTop%20%3D%20'0px'%3Bdocument.querySelector('.is-collapsed%3Anot(.off-canvas)%20.basic-page').style.paddingLeft%20%3D%20'0px'%3Bdocument.querySelector('div.tabLayout-bodyWrapper').style.paddingTop%20%3D%20'0px'%3Bdocument.querySelector('div%5Bdata-region%3D%22header%22%5D').style.display%3D'none'%3Bdocument.querySelector('%23application-header').style.display%3D'none'%3Bdocument.querySelector('div.tabLayout-header').style.display%3D'none'%3Bdocument.querySelector('.sidemenu-container').style.display%3D'none'%3Bdocument.querySelector('div.tabLayout%20.tabLayout-bodyWrapper%20.cardsLayout').style.height%3D'100%25'%3Bvar%20elem%20%3D%20document.body%3Bvar%20requestMethod%20%3D%20elem.requestFullScreen%20%7C%7C%20elem.webkitRequestFullScreen%20%7C%7C%20elem.mozRequestFullScreen%20%7C%7C%20elem.msRequestFullScreen%3Bif%20(requestMethod)%20%7BrequestMethod.call(elem)%3B%7D%7D)()%7D)()">RunRunFullBoard</a> | |
OU | |
javascript:(function()%7B(function%20()%20%7Bdocument.querySelector('.is-collapsed%3Anot(.off-canvas)%20.basic-page').style.paddingTop%20%3D%20'0px'%3Bdocument.querySelector('.is-collapsed%3Anot(.off-canvas)%20.basic-page').style.paddingLeft%20%3D%20'0px'%3Bdocument.querySelector('div.tabLayout-bodyWrapper').style.paddingTop%20%3D%20'0px'%3Bdocument.querySelector('div%5Bdata-region%3D%22header%22%5D').style.display%3D'none'%3Bdocument.querySelector('%23application-header').style.display%3D'none'%3Bdocument.querySelector('div.tabLayout-header').style.display%3D'none'%3Bdocument.querySelector('.sidemenu-container').style.display%3D'none'%3Bdocument.querySelector('div.tabLayout%20.tabLayout-bodyWrapper%20.cardsLayout').style.height%3D'100%25'%3Bvar%20elem%20%3D%20document.body%3Bvar%20requestMethod%20%3D%20elem.requestFullScreen%20%7C%7C%20elem.webkitRequestFullScreen%20%7C%7C%20elem.mozRequestFullScreen%20%7C%7C%20elem.msRequestFullScreen%3Bif%20(requestMethod)%20%7BrequestMethod.call(elem)%3B%7D%7D)()%7D)() |
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
(function () { | |
document.querySelector('.is-collapsed:not(.off-canvas) .basic-page').style.paddingTop = '0px'; | |
document.querySelector('.is-collapsed:not(.off-canvas) .basic-page').style.paddingLeft = '0px'; | |
document.querySelector('div.tabLayout-bodyWrapper').style.paddingTop = '0px'; | |
document.querySelector('div[data-region="header"]').style.display='none'; | |
document.querySelector('#application-header').style.display='none'; | |
document.querySelector('div.tabLayout-header').style.display='none'; | |
document.querySelector('.sidemenu-container').style.display='none'; | |
document.querySelector('div.tabLayout .tabLayout-bodyWrapper .cardsLayout').style.height='100%'; | |
var elem = document.body; | |
var requestMethod = elem.requestFullScreen || elem.webkitRequestFullScreen || elem.mozRequestFullScreen || elem.msRequestFullScreen; | |
if (requestMethod) { | |
requestMethod.call(elem); | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment