Skip to content

Instantly share code, notes, and snippets.

View olofbokedal's full-sized avatar

Olof Bokedal olofbokedal

View GitHub Profile
@AdamGerthel
AdamGerthel / disable_ajax.js
Created March 11, 2014 08:42
Useful snippet for theming Drupal ajax throbbers. Execute it in the console and it stops all future ajax requests from working. The throbbers will be displayed but never removed.
XMLHttpRequest = function(){};
XMLHttpRequest.prototype = {
open: function(){},
send: function(){}
};