Skip to content

Instantly share code, notes, and snippets.

@brandonrozek
brandonrozek / basic-serviceworker.js
Last active November 7, 2023 09:10
A basic serviceworker implementation for offline website viewing
// Licensed under a CC0 1.0 Universal (CC0 1.0) Public Domain Dedication
// http://creativecommons.org/publicdomain/zero/1.0/
var version = 'v2.0.24:';
var offlineFundamentals = [
'/',
'/offline/'
];
@brandonrozek
brandonrozek / createVCard.js
Created December 27, 2015 18:40
Userscript that generates a vCard from the representative h-card
// ==UserScript==
// @name Create vCard
// @description Creates a vCard and displays the link on the top left of the page
// @include *
// @grant none
// ==/UserScript==
/*
microformat-shiv - v1.3.1
Built: 2015-10-08 10:10 - http://microformat-shiv.com