Skip to content

Instantly share code, notes, and snippets.

@synox
Last active August 29, 2015 14:16
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save synox/eb55e160587ade8dc8de to your computer and use it in GitHub Desktop.
Save synox/eb55e160587ade8dc8de to your computer and use it in GitHub Desktop.
Yamaha RX-v673 Network-Control bookmarklet for firefox
javascript:(function(){var%20request1=new%20XMLHttpRequest();request1.open('POST','http://192.168.0.3/YamahaRemoteControl/ctrl',true);request1.send('<YAMAHA_AV%20cmd="PUT"><Main_Zone><Power_Control><Power>On</Power></Power_Control><Input><Input_Sel>TUNER</Input_Sel></Input></Main_Zone></YAMAHA_AV>');})()
javascript:(function(){var%20request=new%20XMLHttpRequest();request.open('POST','http://192.168.0.3/YamahaRemoteControl/ctrl',true);request.send('<YAMAHA_AV%20cmd="PUT"><Main_Zone><Power_Control><Power>Standby</Power></Power_Control></Main_Zone></YAMAHA_AV>');})()
javascript:(function(){var%20request1=new%20XMLHttpRequest();request1.open('POST','http://192.168.0.3/YamahaRemoteControl/ctrl',true);request1.send('<YAMAHA_AV%20cmd="PUT"><Main_Zone><Volume><Lvl><Val>Down%202%20dB</Val><Exp></Exp><Unit></Unit></Lvl></Volume></Main_Zone></YAMAHA_AV>');})()
javascript:(function(){var%20request1=new%20XMLHttpRequest();request1.open('POST','http://192.168.0.3/YamahaRemoteControl/ctrl',true);request1.send('<YAMAHA_AV%20cmd="PUT"><Main_Zone><Volume><Lvl><Val>Up%202%20dB</Val><Exp></Exp><Unit></Unit></Lvl></Volume></Main_Zone></YAMAHA_AV>');})()
@synox
Copy link
Author

synox commented Mar 10, 2015

Seems not to work in firefox if focus is in a tab with HTTPS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment