Is it possible to do the following?
Say I have a Twitter script tag like so
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
But I want to use jQuery to remove it using .remove(); how on earth would I be able to select it as I'd essentially like to be able to pick up 'platform.twitter.com' from within the code.
This is for a little side project so if anyone successfully helps you will be mentioned on the website when its live.