Last active
May 24, 2017 16:45
-
-
Save kristof/dbc45e7f8f3661bd536d1071e493d7b1 to your computer and use it in GitHub Desktop.
Bookmarklet for hiding the Invision UI + hotspots
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
javascript:!function(){var a=document.getElementById("bottom_bar"),b=document.getElementsByClassName("hide-tray-toggle"),c=document.getElementById("screens_viewer_nav"),d=document.getElementsByClassName("powered-by"),e=document.getElementsByClassName("toolbar"),f=document.getElementsByClassName("slideshow-nav"),g=document.getElementsByClassName("hotspot");a&&a.remove(),b.length&&b[0]&&b[0].remove(),c&&c.remove(),d.length&&d[0]&&d[0].remove(),e.length&&e[0]&&e[0].remove(),f.length&&f[0]&&f[0].remove();var h=function(){for(var a=0;a<g.length;a++)g[a].style.backgroundColor="transparent",g[a].style.border="none"};h();setInterval(function(){h()},200)}(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment