Permalink
Browse files

recent CSP headers added by Github prevented inline-scripts

  • Loading branch information...
skratchdot committed Apr 13, 2013
1 parent 963dcc3 commit 80f77bc3d588ef5fcd411a3dc77062166b091713
Showing with 3 additions and 8 deletions.
  1. +3 −8 github-repo-counts.user.js
@@ -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 () {
@@ -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.