JSFiddle - React, Tailwind, and code Playground

by gregborbonus

JavaScript

function makeid(count) {
      var possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
      var text = "";
      for (var x = 0; x < count; x++) {
        text += possible.charAt(Math.floor(Math.random() * possible.length));
      }
      return text;
    }

    (function($) {
        var _ajax = $.ajax;
        $.extend({
            ajax: function(o) {
							 if(o.url){
								split='?';
								if(o.url.indexOf('?') > 0) split='&';
                 o.url+=split + 'string=' + makeid(10);
               }
               return _ajax.call(this,o);
              }
            });
        })(jQuery);


$.get('google.com');