Skip to content

Instantly share code, notes, and snippets.

@abernier
Created November 15, 2011 22:51
Show Gist options
  • Save abernier/1368637 to your computer and use it in GitHub Desktop.
Save abernier/1368637 to your computer and use it in GitHub Desktop.
ACE editor for editing your gists
// ==UserScript==
// @id acegist
// @name ACEgist
// @description ACE editor in your gists
// @match https://gist.github.com/gists/*/edit
// ==/UserScript==
(function (d) {
var s;
s = d.createElement('script');
s.async = true;
s.src = 'https://github.com/ajaxorg/ace/blob/master/build/src/ace.js';
s.load = function () {
console.log(ace, document.querySelectorAll('textarea'));
}
d.getElementsByTagName('head')[0].appendChild(s);
}(document));
@rpavlik
Copy link

rpavlik commented Feb 28, 2012

Since Gists have been moved to https, this makes a scary warning in CHrome. I'm pretty sure it's just line 59 that is the issue - is there an https equivalent?

@abernier
Copy link
Author

@rpavlik: ok should be fixed now, thx!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment