Title: Removing script from frontend
Last modified: August 2, 2020

---

# Removing script from frontend

 *  Resolved [simondeadly](https://wordpress.org/support/users/simondeadly/)
 * (@simondeadly)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/removing-script-from-frontend/)
 * Hello,
    can you tell me how to remove this script from the frontend of the website
 * <script type=”text/javascript”>
    /* <![CDATA[ */ var strs_obj = {“be_restored”:”
   It will be restored.”,”can_recover”:”You can recover it from trash.”,”be_deleted”:”
   It will be deleted permanently.”,”you_sure”:”Are you sure?”,”Ignore_changes”:”
   It seems like you have made some changes in a repeater field. Ignore the changes?”};
   var ajax_script = {“ajaxurl”:”https:\/\/my-site-url\/wp-admin\/admin-ajax.php”,”
   nonce”:”010be23203″}; var PANDA_PODS_REPEATER_PAGE_URL = “https:\/\/my-site-url\/
   wp-content\/plugins\/panda-pods-repeater-field\/fields\/pandarepeaterfield.php?
   page=panda-pods-repeater-field&”; var PANDA_PODS_REPEATER_URL = “https:\/\/my-
   site-url\/wp-content\/plugins\/panda-pods-repeater-field\/”; /* ]]> */ </script
   >

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Coding Panda](https://wordpress.org/support/users/codingpanda/)
 * (@codingpanda)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/removing-script-from-frontend/#post-13202777)
 * Hi [@simondeadly](https://wordpress.org/support/users/simondeadly/)
 * You can try the following code:
 *     ```
       class Alter_WP_Scripts extends WP_Scripts{
           function do_item( $handle, $group = false ){       
           	if( 'panda-pods-repeater-scripts' == $handle ){
           		$handle = false;
           	}
               return parent::do_item( $handle, $group );    	
           }
       }
       if( !is_admin() ){
       	add_action( 'wp_loaded', function() {
       	    $GLOBALS['wp_scripts'] = new Alter_WP_Scripts;
       	});
       }
       ```
   
 * I tested the code and it works for the purpose on my testing site, but please
   double-check that it doesn’t cause any problems.
 * Thanks for using the plugin.
 *  Thread Starter [simondeadly](https://wordpress.org/support/users/simondeadly/)
 * (@simondeadly)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/removing-script-from-frontend/#post-13204288)
 * Thank you it worked

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Removing script from frontend’ is closed to new replies.

 * ![](https://ps.w.org/panda-pods-repeater-field/assets/icon-128x128.png?rev=1520380)
 * [Panda Pods Repeater Field](https://wordpress.org/plugins/panda-pods-repeater-field/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/panda-pods-repeater-field/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/panda-pods-repeater-field/)
 * [Active Topics](https://wordpress.org/support/plugin/panda-pods-repeater-field/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/panda-pods-repeater-field/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/panda-pods-repeater-field/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [simondeadly](https://wordpress.org/support/users/simondeadly/)
 * Last activity: [5 years, 10 months ago](https://wordpress.org/support/topic/removing-script-from-frontend/#post-13204288)
 * Status: resolved