I've made a JavaScript code that is way to big for easy copy-paste. Therefore, it would be perfect to use jQuery's getScript to make it smaller.
I'm having a hard time to get it to work. I tought it maybe could be some spesial way to construct the .js. Here is what I got so far trying to figure it out.
javascript:
(function() {
$.getScript("https://raw.githubusercontent.com/stianteien/forsvarsoversikt/master/test.js");
})()
Directed to this page: https://raw.githubusercontent.com/stianteien/forsvarsoversikt/master/test.js With the simple code:
alert("hello");
...my browser is sending an error:
Loading fail for this
<script>
with this source
How do I get this to work?