Skip to content

Instantly share code, notes, and snippets.

@Lomanic
Last active March 26, 2016 20:00
Show Gist options
  • Select an option

  • Save Lomanic/74fc330cb9e2a1c6d979 to your computer and use it in GitHub Desktop.

Select an option

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