Skip to content

Instantly share code, notes, and snippets.

@Lomanic
Last active March 26, 2016 20:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Lomanic/74fc330cb9e2a1c6d979 to your computer and use it in GitHub Desktop.
Save Lomanic/74fc330cb9e2a1c6d979 to your computer and use it in GitHub Desktop.
Userscript to fix the "ReferenceError: Promise is not defined" error on old browsers on Github
// ==UserScript==
// @name Github ES6-Promises Polyfill
// @namespace Lomanic
// @description Fix the "ReferenceError: Promise is not defined" error
// @include https://github.com/*
// @include https://gist.github.com/*
// @require https://raw.githubusercontent.com/jakearchibald/es6-promise/master/dist/es6-promise.min.js
// @run-at document-start
// @version 1.1
// @grant none
// ==/UserScript==
// nothing to do here, see the @require above
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment