Polski: Przepraszam za nieestetyczny wygląd mojej strony internetowej. Niestety z powodu natłoku pracy nie miałem jeszcze czasu nad tym popracować. Posiadam pewną wizję, do której oczywiście będę dążył. Póki co, zapraszam do czytania moich Solucji i Narzędzi.

English: Sorry for the unsightly look of my website. Unfortunately, because of the sheer volume of work I did not have time to work on that. I have a vision, which, of course, I will seek. For now, I invite you to read my Solutions and Tools.

JSFiddle quick add predefined external resources

Google Chrome Extension: Custom JavaScript for websites

jQuery.noConflict();
jQuery(function() {
  var external_resources = {
    'bootstrap': [
      'https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css',
      'https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js'
    ]
  };

  var external_resources_form = jQuery('#external-resources-form').wrapInner(
    jQuery('<div>').css({
      'position': 'relative',
      'margin-bottom': '5px'
    })
  );

  jQuery.each(external_resources, function(name, resources) {
    jQuery('<button>').text(name).click(function(event) {
      event.preventDefault();
      jQuery.each(resources, function(index, resource) {
        jQuery('#external_resource').val(resource);
        jQuery('#add_external_resource > i').trigger('click');
      });
    }).appendTo(external_resources_form);
  });
});

Default latest jQuery selected:

jQuery('#js_lib option').attr('selected', '').each(function() {
    var option = jQuery(this);
    if (/^jQuery\s\d+\.\d+\.\d+$/i.test(option.text())) {
      option.attr('selected', 'selected');
      option.parents('select').val(option.val());
      return false;
    }
  });
Tags: jsfiddle, chrome, cjs, code, javascript

« Take all registered jQuery Event Handlers - RegEx change chars case »