Skip to content

Instantly share code, notes, and snippets.

@dsprenkels
Last active January 12, 2016 13:15
Show Gist options
  • Save dsprenkels/fdd2fc4014dcc9df4948 to your computer and use it in GitHub Desktop.
Save dsprenkels/fdd2fc4014dcc9df4948 to your computer and use it in GitHub Desktop.
a userscript that hides the header and footer when "media: print" on fosdem.org
// ==UserScript==
// @name fosdem.org: hide header/footer in "media: print"
// @namespace com.dsprenkels.fosdem_bprint
// @include https://fosdem.org/*
// @version 1
// @grant none
// ==/UserScript==
var elem = document.createElement("style");
elem.setAttribute("type", "text/css");
elem.setAttribute("media", "print");
elem.innerHTML = "#header, .title-box, #footer { display: none; }";
document.head.appendChild(elem);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment