Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from MatmaRex/master
Add minified version
- Loading branch information
Showing
1 changed file
with
8 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/* | ||
FuckItJS v2.0.0-alpha | ||
Copyright 2012, Matt Diamond | ||
Note: This is ALPHA software and may result in irreversible brain damage. | ||
*/ | ||
|
||
(function($){$.ajaxSetup({cache:true});var _FuckIt=window.FuckIt;var FuckIt=function(script){var req=$.ajax({url:script,dataType:"text"});req.then(function(result){window.fuckedScript=result;eval(window.fuckedScript);},function(){throw new Error("Could not load script: "+script);});};window.onerror=function(error,url,line){if(!window.fuckedScript)return;var parsed=window.fuckedScript.split("\n");parsed.splice(line-1,1);window.fuckedScript=parsed.join("\n");$.getScript("fuckit.js",function(){eval(window.fuckedScript);});return true;};FuckIt.noConflict=function(){window.FuckIt=_FuckIt;return FuckIt;};window.FuckIt=FuckIt;})(jQuery); |