Skip to content

Instantly share code, notes, and snippets.

@kristof
Last active May 24, 2017 16:45
Show Gist options
  • Save kristof/dbc45e7f8f3661bd536d1071e493d7b1 to your computer and use it in GitHub Desktop.
Save kristof/dbc45e7f8f3661bd536d1071e493d7b1 to your computer and use it in GitHub Desktop.
Bookmarklet for hiding the Invision UI + hotspots
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