ahmedkaludi / accelerated-mobile-pages

Automatically add Accelerated Mobile Pages (AMP Project) functionality on your WordPress.
http://ampforwp.com
Other
176 stars 96 forks source link

Detect and remove custom js from last content filter #4689

Closed ahmedkaludi closed 4 years ago

ahmedkaludi commented 4 years ago

e.g. CW

MohammedKaludi commented 4 years ago

not working with different scenarios <script type="text/javascript"> jQuery(document).ready( function($) { jQuery('form').submit( function() { var splitName = jQuery('#inf_field_FirstName').val(); var names = splitName.split(' '); var firstName = names[0]; names.splice(0,1); // removes the first name from the array var lastName = names.join(' '); // put any remaining values from array into lastName, separate with a space jQuery('#inf_field_FirstName').val(firstName); jQuery('#LastName').val(lastName); return true; }); }); </script>

and <script type="text/javascript" src="https://di209.infusionsoft.com/app/webTracking/getTrackingCode"></script>

but this seeems to be working

<script(.*?)type="text\/javascript"(.*?)>[\s\S]*?<\/script>

MohammedKaludi commented 4 years ago

Ready to go.

MohammedKaludi commented 4 years ago

pushed in 1.0.62.1 update