This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
---------------------------------
| |
Quote from Klowed»this was a brilliant idea, props to OP
Quote from taegster101»Also, if anyone knows how to use Java queries with the procCmd function please tell me, I want to do a /ytsearch <search> and it searches for you
function procCmd(cmd) { var c = cmd.split(" "); var i; var query = ""; var fullUrl = "http://youtube.com/results?search_query="; if(c[0] == "ytsearch") { if(c[1] != null) { try { for(i = 1; i < c.length - 1; i++) { query += c[i]+"+"; } } finally { fullUrl += query; //DO SOMETHING WITH FULL URL } } } }
Willing to work on Android apps or multi-platform games, see profile bio for information.
Founder and CEO of Temena Development
Twitter: @TemenaPE
Instagram: @ItsLiterallyMath
Quote from Temena» function procCmd(cmd) { var c = cmd.split(" "); var i; var query = ""; var fullUrl = "http://youtube.com/results?search_query="; if(c[0] == "ytsearch") { if(c[1] != null) { try { for(i = 1; i < c.length - 1; i++) { query += c[i]+"+"; } } finally { fullUrl += query; //DO SOMETHING WITH FULL URL } } } } [/i] The try/finally is just ensuring that all queries have been added before it executes the URL command. You never know when something could go wrong. This should work for what you need... if not... It's something along those lines so you should be able to tinker with it.
function procCmd(cmd) { var c = cmd.split(" "); var i; var query = ""; var fullUrl = "http://youtube.com/results?search_query="; if(c[0] == "ytsearch") { if(c[1] != null) { try { for(i = 1; i < c.length - 1; i++) { query += c[i]+"+"; } } finally { fullUrl += query; //DO SOMETHING WITH FULL URL } } } } [/i]
Quote from taegster101»↑ Dropped string, going to try fix Searchinh will be released soon people
WATCH YOUTUBE INSIDE MCPE!!!
THIS MOD MAKES A BUTTON THAT CAN OPEN A WINDOW WiTH YOUTUBE INSIDE, WATCH, SIGN IN, SUB AND MORE
WITHOUT EVEN HAVING TO LEAVE MCPE!!!
THANKS TO TEMENA FOR HIS HELP WITH THE GUI
Enjoy LINK:
https://www.dropbox.com/s/jbaduedf56uf34s/Yt Mod.js?dl=0
Bugs:keyboard doesnt open
Video carrys on playing after closing
If you have any ideas pm me
Youtube is a registered trademark of Google inc. I am not associated with Google or YouTube inc. All trade marks belong to their owners
---------------------------------
|
|
---------------------------------
Keep up The Good Work!😉
I want to do a /ytsearch <search> and it searches for you
Thanks, my first attempt at using gui in modPE
function procCmd(cmd) { var c = cmd.split(" "); var i; var query = ""; var fullUrl = "http://youtube.com/results?search_query="; if(c[0] == "ytsearch") { if(c[1] != null) { try { for(i = 1; i < c.length - 1; i++) { query += c[i]+"+"; } } finally { fullUrl += query; //DO SOMETHING WITH FULL URL } } } }The try/finally is just ensuring that all queries have been added before it executes the URL command. You never know when something could go wrong.
This should work for what you need... if not... It's something along those lines so you should be able to tinker with it.
Willing to work on Android apps or multi-platform games, see profile bio for information.
Founder and CEO of Temena Development
Twitter: @TemenaPE
Instagram: @ItsLiterallyMath
Cool, will test this out
Dropped string, going to try fix
Searchinh will be released soon people
Hooray!
---------------------------------
|
|
---------------------------------