MCPcopy
hub / github.com/mattdiamond/fuckitjs / FuckIt

Function FuckIt

fuckit.js:16–29  ·  view source on GitHub ↗
(script)

Source from the content-addressed store, hash-verified

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;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected