Skip to content

Commit

Permalink
recent CSP headers added by Github prevented inline-scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
skratchdot committed Apr 13, 2013
1 parent 963dcc3 commit 80f77bc
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions github-repo-counts.user.js
Expand Up @@ -9,12 +9,12 @@
// @icon http://skratchdot.com/favicon.ico
// @downloadURL https://github.com/skratchdot/github-repo-counts.user.js/raw/master/github-repo-counts.user.js
// @updateURL https://github.com/skratchdot/github-repo-counts.user.js/raw/master/github-repo-counts.user.js
// @version 1.5
// @version 1.6
// ==/UserScript==
/*global jQuery */
/*jslint browser: true */

var main = function () {
(function () {
'use strict';

var init = function () {
Expand All @@ -39,9 +39,4 @@ var main = function () {
});
init();
});
};

// Inject our main script
var script = document.createElement('script');
script.textContent = '(' + main.toString() + ')();';
document.body.appendChild(script);
}());

0 comments on commit 80f77bc

Please sign in to comment.