Skip to content

Instantly share code, notes, and snippets.

View kristof's full-sized avatar

Kristof Houben kristof

View GitHub Profile
@kristof
kristof / invisionBookmarklet.js
Last active February 15, 2018 01:45
Bookmarklet for hiding the Invision UI + hotspots
javascript: (function() {
var bottomBar = document.getElementById('bottom_bar');
var trayToggle = document.getElementsByClassName('hide-tray-toggle');
var screensViewerNav = document.getElementById('screens_viewer_nav');
var poweredBy = document.getElementsByClassName('powered-by');
var toolbar = document.getElementsByClassName('toolbar');
var slideshowNav =document.getElementsByClassName('slideshow-nav');
var hotspots = document.getElementsByClassName('hotspot');
@kristof
kristof / invisionBookmarklet.min.js
Last active May 24, 2017 16:45
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)}();
@kristof
kristof / gist:2005976
Created March 9, 2012 10:24
Mail snippet
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="nl">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title></title>
</head>
<body>
<table cellpadding="0" cellspacing="0" width="600">
@kristof
kristof / blank-target
Created March 1, 2012 08:07
Blank target for external link
$("a[href^='http:']:not([href*='" + window.location.host + "'][target='_blank'])").on('click', function(){
$(this).attr('target','_blank');
});
@kristof
kristof / clearfix LESS
Created February 15, 2012 18:04
Clearfix less
.clearfix{
zoom: 1;
&:before,
&:after {
display: table;
content: "\0020";
zoom: 1;
}
&:after {
clear: both;