title: How can I remove code from jquery plugin
body: <p>I have a wordpress plugin installed, I want to access the code bellow in order to remove the part after: // Init prettyPhoto. Is there a way to access the code, so I can edit variables, function ? How would you do this ? Wordpress plugins get updated frequently, so whenever the plugin gets updated, any change I do would be lost.  I want to know if there is a way to edit the variables, functions, on run time, without changing the file itself. </p>
  
  <pre><code>jQuery(document).ready(function($){
  "use strict";
  
  var qv_modal    = $(document).find( '#yith-quick-view-modal' ),
      qv_overlay  = qv_modal.find( '.yith-quick-view-overlay'),
      qv_content  = qv_modal.find( '#yith-quick-view-content' ),
      qv_close    = qv_modal.find( '#yith-quick-view-close' );
  
  
  /*==================
   *MAIN BUTTON OPEN
   ==================*/
  
  $.fn.yith_quick_view = function() {
  
      var button  = $(document).find( '.yith-wcqv-button' );
  
      // remove prev click event
      button.off( 'click' );
  
      button.on( 'click', function(e){
  
          e.preventDefault();
  
          var t           = $(this),
              product_id  = t.data( 'product_id' ),
              is_blocked  = false;
  
          if ( typeof yith_qv.loader !== 'undefined' ) {
              is_blocked = true;
              t.block({
                  message: null,
                  overlayCSS  : {
                      background: '#fff url(' + yith_qv.loader + ') no-repeat center',
                      opacity   : 0.5,
                      cursor    : 'none'
                  }
              });
          }
          ajax_call( t, product_id, is_blocked );
      });
  };
  .
  .
  .
  .
  .
  
  /*================
   * MAIN AJAX CALL
   ================*/
  
  var ajax_call = function( t, product_id, is_blocked ) {
  
      $.post( yith_qv.ajaxurl, { action: 'yith_load_product_quick_view', product_id: product_id }, function( data ) {
  
          qv_content.html( data );
  
          // quantity fields for WC 2.2
          if( yith_qv.is2_2 ) {
              qv_content.find('div.quantity:not(.buttons_added), td.quantity:not(.buttons_added)').addClass('buttons_added').append('&lt;input type="button" value="+" class="plus" /&gt;').prepend('&lt;input type="button" value="-" class="minus" /&gt;');
          }
  
          // Variation Form
          var form_variation = qv_content.find( '.variations_form' );
  
          form_variation.wc_variation_form();
  
          if( typeof $.fn.yith_wccl !== 'undefined' ) {
              form_variation.yith_wccl();
          }
  
          // Init prettyPhoto
          if( typeof $.fn.prettyPhoto !== 'undefined' ) {
              qv_content.find("a[data-rel^='prettyPhoto'], a.zoom").prettyPhoto({
                  hook              : 'data-rel',
                  social_tools      : false,
                  theme             : 'pp_woocommerce',
                  horizontal_padding: 20,
                  opacity           : 0.8,
                  deeplinking       : false
              });
          }
  
          if( ! qv_modal.hasClass( 'open' ) ) {
              qv_modal.addClass('open');
              if( is_blocked )
                  t.unblock();
          }
  
          // stop loader
          $(document).trigger( 'qv_loader_stop' );
  
      });
  };
  
  });
  </code></pre>