MCPcopy Create free account
hub / github.com/ActiveState/code / do_youtube

Function do_youtube

recipes/JavaScript/578517_Music_player/recipe-578517.js:1876–1887  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

1874}
1875
1876function do_youtube(s)
1877{
1878 var s_url="";
1879 s=replaceAll(s,"/"," ");
1880 s=convert_input_string(s);
1881 s=replaceAll(s," ","+");
1882 s=s.replace("++","+");
1883 s=s.toLowerCase();
1884 s_url="http://www.youtube.com/results?search_query="+s;
1885 var newwindow=window.open(s_url,'name','resizable=1,scrollbars=1');
1886 if (window.focus) {newwindow.focus()}
1887}
1888
1889function do_youtube_current()
1890{

Callers 2

do_youtube_search_barFunction · 0.85
do_youtube_currentFunction · 0.85

Calls 5

replaceAllFunction · 0.85
convert_input_stringFunction · 0.85
replaceMethod · 0.45
openMethod · 0.45
focusMethod · 0.45

Tested by

no test coverage detected