Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View zryty's full-sized avatar

Krzysiek zryty

  • Kraków, Poland
View GitHub Profile
@zryty
zryty / findStyles.js
Created April 21, 2020 08:27 — forked from macbookandrew/findStyles.js
List unique CSS properties for all DOM elements
/**
* List unique CSS properties for all DOM elements
* Initially created to list unique font stacks on a page
* @see {@link http://stackoverflow.com/a/35022690/ Inspired by this StackOverflow answer}
*
* @see {@link https://gist.github.com/macbookandrew/f33dbbc0aa582d0515919dc5fb95c00a/ URL for this file}
*
* @author AndrewRMinion Design (https://andrewrminion.com)
* @version 1.1
*
@zryty
zryty / dispose.js
Created October 15, 2020 12:44 — forked from jussi-kalliokoski/dispose.js
A polyfill for ArrayBuffer#dispose
void function () {
if ( 'dispose' in ArrayBuffer.prototype ) return
var blob = new Blob([''], {
type: 'text/javascript'
})
var url = URL.createObjectURL(blob)
var worker = new Worker(url)
URL.revokeObjectURL(url)