Skip to content

Instantly share code, notes, and snippets.

View kfrank's full-sized avatar
:octocat:

Klare Frank kfrank

:octocat:
View GitHub Profile
@pixelthing
pixelthing / codepen.ipad.css
Last active March 28, 2019 16:39
Making codepen.io a little more iPad friendly. @pixelthing
/*
Making codepen.io a little more iPad friendly. @pixelthing
First - I hope this doesn't come across as being a bit of an dick. I massively appreciate
CodePen and know the huge amount of pressure that comes from every direction in a project this
big, so totally understand that not every user experience can be addressed with the time and
resources available. Think of this as a pull request for your consideration.
*Do not feel the need to pity-implement anything or let me down gently. It's your site, not mine.*
This is a shim to add to the CodePen editor styles (eg, greasemonkey style).
@paulirish
paulirish / bling.js
Last active May 10, 2025 11:02
bling dot js
/* bling.js */
window.$ = document.querySelector.bind(document);
window.$$ = document.querySelectorAll.bind(document);
Node.prototype.on = window.on = function(name, fn) { this.addEventListener(name, fn); };
NodeList.prototype.__proto__ = Array.prototype;
NodeList.prototype.on = function(name, fn) { this.forEach((elem) => elem.on(name, fn)); };