Bookmarklet to use your Raspberry Pi with XBMC like a Chromecast.
Enter your XBMC ip:
Enter your XBMC port:
Bookmarklet code:
javascript:(function()%7Bvar%20regex%20%3D%20%2F'file'%3A%20'(.%2B%3F)'%2F%3Bvar%20url%20%3D%20document.URL%3Bvar%20ein%20%3D%20%2Feinthusan%2F%3Bvar%20allmyv%20%3D%20%2Fallmyvideos%2F%3Bvar%20vidto%20%3D%20%2Fvidto%2F%3Bvar%20playedto%20%3D%20%2Fplayed%2F%3Bvar%20megafiles%20%3D%20%2Fmegafiles%2F%3Bvar%20bestreams%20%3D%20%2Fbestreams%2F%3Bvar%20cbs%20%3D%20%2Fcbs%2F%3Bvar%20vk%20%3D%20%2Fvk%2F%3Bvar%20streamcloud%20%3D%20%2Fstreamcloud%2F%3Bvar%20vidspot%20%3D%20%2Fvidspot%2F%3Bvar%20magnovideo%20%3D%20%2Fmagnovideo%2F%3Bvar%20mega%20%3D%20%2Fmega%2F%3Bvar%20rocvideo%20%3D%20%2Frocvideo%2F%3Bif(allmyv.test(url))%7Bregex%3D%20%2F%22file%22%20%3A%20%22(.%2B%3F)%22%2C%2F%3B%7Delse%20if(vidto.test(url))%7Bregex%20%3D%20%2Ffile_link%20%3D%20'(.%2B%3F)'%2F%3B%7Delse%20if(playedto.test(url))%7Bregex%20%3D%20%2Ffile%3A%20%22(.%2B%3F)%22%2F%3B%7Delse%20if(megafiles.test(url))%7Bregex%20%3D%20%2Ffile_link%20%3D%20'(.%2B%3F)'%2F%3B%7Delse%20if(bestreams.test(url))%7Bregex%20%3D%20%2Ffile%3A%20%22(.%2B%3F)%22%2F%3B%7Delse%20if(cbs.test(url))%7Bregex%20%3D%20%2Fvideo.settings.pid%20%3D%20'(.*%3F)'%2F%3B%7Delse%20if(vk.test(url))%7Bregex%20%3D%20%2F%22url360%22%3A%22(.%2B%3F)%22%2F%3B%7Delse%20if(streamcloud.test(url))%7Bregex%20%3D%20%2Ffile%3A%20%22(.%2B%3F)%22%2F%3B%7Delse%20if(vidspot.test(url))%7Bregex%20%3D%20%2F%22file%22%20%3A%20%22(.%2B%3F)%22%2C%2F%3B%7Delse%20if(magnovideo.test(url))%7Bregex%20%3D%20%2Fswf%3Fflv%3D(.%2B%3F)%2F%3B%7D%20else%20if(rocvideo.test(url))%7Bregex%20%3D%20%2F%3Cvideo%20x-webkit-airplay%3D%22allow%22%20src%3D%22(.%2B%3F)%22%2F%3B%7Dvar%20StreamUrl%20%3D%20regex.exec(document.body.innerHTML)%5B1%5D%3Bvar%20ip%20%3D%20'{{xbmcIP}}'%3Bvar%20port%20%3D%20'{{xbmcPORT}}'%3Bvar%20xbmc%20%3D%20'http%3A%2F%2F'%2Bip%2B'%3A'%2Bport%2B'%2Fjsonrpc%3Frequest%3D%7B%22jsonrpc%22%3A%222.0%22%2C%22method%22%3A%22Player.Open%22%2C%22params%22%3A%7B%22item%22%3A%7B%22file%22%3A%22'%2BStreamUrl%2B'%22%7D%7D%7D'%3BhttpGet(xbmc)%3Bfunction%20httpGet(theUrl)%7Bvar%20xmlHttp%20%3D%20null%3BxmlHttp%20%3D%20new%20XMLHttpRequest()%3BxmlHttp.open(%20%22GET%22%2C%20theUrl%2C%20false%20)%3BxmlHttp.send(%20null%20)%3B%7D%7D)()