Skip to content

Commit

Permalink
Add injector script
Browse files Browse the repository at this point in the history
  • Loading branch information
ctsstc committed Oct 3, 2019
1 parent e997ee2 commit 7fee859
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion canvas-discussion-enhancer.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@
return {
execute
};
})(document).execute();
})(document).execute();
15 changes: 15 additions & 0 deletions injector.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// IIFE
const scriptTag = document.createElement('script');
(document => {
const source = 'https://cdn.jsdelivr.net/gh/ctsstc/a-better-canvas@master/canvas%20discussion%20enhancer.js';

function execute() {
const scriptTag = document.createElement('script');
scriptTag.setAttribute('src', source);
document.head.appendChild(scriptTag);
}

return {
execute
};
})().execute();

0 comments on commit 7fee859

Please sign in to comment.