I am using Jquery userscript to change the link within <iframe>
or <a>
with any other link for me (not on the site). How can I remove part of that link?
Currently this userscripts turns
into
I want to remove the
hd=1&autohide=1&showinfo=0&wmode=opaque&cc_load_policy=1&rel=0&autoplay=1
So that the final link becomes
http://playit.pk/embed?v=YDkTCGL1l0s
Here is what I am currently using.
$('iframe').each(function(){
this.src = this.src.replace('youtube.com/embed/', 'playit.pk/embed?v=');
});
playit.pk
so the video wont start. So only if the link is like playit.pk/embed?v=YDkTCGL1l0s The video starts playing – SarmadK