(script)
| 14 | var _FuckIt = window.FuckIt; |
| 15 | |
| 16 | var FuckIt = function(script){ |
| 17 | window.fuckingDeferred = $.Deferred(); |
| 18 | $.ajax({ |
| 19 | url: script, |
| 20 | dataType: "text" |
| 21 | }).then(function(result){ |
| 22 | window.fuckedScript = result; |
| 23 | eval(window.fuckedScript); |
| 24 | window.fuckingDeferred.resolve(); |
| 25 | }, function(){ |
| 26 | throw new Error("Could not load script: "+script); |
| 27 | }); |
| 28 | return window.fuckingDeferred.promise(); |
| 29 | } |
| 30 | |
| 31 | window.onerror = function(error, url, line){ |
| 32 | if (!window.fuckedScript) return; |
nothing calls this directly
no outgoing calls
no test coverage detected