0
This is my first attempt with programming, I saw on a website a link that when putting in the favorites would serve to download a youtube video only in mp3 format, but n worked, while making attempts I understood why and tried to fix, I was able to partially do it because the result shows the symbols in the form of code and I can not do anything to remove it
javascript:(function() {if (location.href.indexOf('youtube.com') > -1) {window.open('http://youtubeplaylist-mp3.com/download/index/' + encodeURIComponent(location.href) .replace("https", "") .replace("youtube", "") .replace("www.", "") .replace(".com", "") .replace("watch", "") .replace(/[%3A]/, '') .replace("", "") .replace("", ""));} else {alert('So funciona no youtube carambola');}})();
BS: I know you have some unused commands there but this is a very initial version and there are some very testing things that I don’t think are influencing
obs: doing this by Chrome (I don’t know if it makes a difference but I thought it would be good to comment)
obsss: I initially did a post on American stackoverflow, link: https://stackoverflow.com/questions/41526572/how-to-remove-3f-and-others-from-the-result-of-my-first-code (in case anyone wants to see)