Skip to content

Instantly share code, notes, and snippets.

View cauerego's full-sized avatar
🎯
focusing on ahoxus

c+aue cauerego

🎯
focusing on ahoxus
View GitHub Profile
// ==UserScript==
// @name Stack Exchange Timeline Link
// @namespace stackoverflow
// @description Add a 'timeline' link to Stack Exchange / Stack Overflow posts - based on http://stackapps.com/questions/2047/add-timeline-and-revisions-links/4238#4238
// @include http*//*stackexchange.com/*
// @include http*//*stackoverflow.com/*
// @include http*//*serverfault.com/*
// @include http*//*superuser.com/*
// @include http*//*askubuntu.com/*
// @include http*//*mathoverflow.net/*
@cauerego
cauerego / IndexedDB101.js
Last active January 13, 2023 22:00 — forked from JamesMessinger/IndexedDB101.js
Very Simple IndexedDB Example
// quite untested, adapted from BigstickCarpet's gist, attempt to make it simpler to use
function openIndexedDB (fileindex) {
// This works on all devices/browsers, and uses IndexedDBShim as a final fallback
var indexedDB = window.indexedDB || window.mozIndexedDB || window.webkitIndexedDB || window.msIndexedDB || window.shimIndexedDB;
var openDB = indexedDB.open("MyDatabase", 1);
openDB.onupgradeneeded = function() {
var db = {}