Tip: Click lines to highlight, hold ctrl/cmd to multi-select

http://codedumper.com/ebegu (26-Jul @ 07:15)

yansky

Syntax Highlighted Code

  1. var fVars = [];
  2.  
  3. function setVars(key, value){
  4.  
  5.     fVars.push(key+value);
  6.  
  7. }
  8.  
  9. setVars("'videoFile:'", '\''+rH+'.flv'+'\'');
  10. setVars("'autoPlay:'", '\''+prefs.getBoolPref("flow.autoPlay")+'\'');
  11. setVars("'autoBuffering:'", '\''+prefs.getBoolPref("flow.autoBuffering")+'\'');
  12. setVars("'usePlayOverlay:'", '\''+prefs.getBoolPref("flow.usePlayOverlay")+'\'');
  13. setVars("'initialScale:'", '\''+prefs.getCharPref("flow.initialScale")+'\'');
  14. setVars("'initialVolumePercentage:'", '\''+prefs.getIntPref("flow.initialVolumePercentage")+'\'');
  15. setVars("'useNativeFullScreen:'", '\''+prefs.getBoolPref("flow.useNativeFullScreen")+'\''); //might need to be set to false for Linux users
  16. setVars("'startingBufferLength:'", '\''+prefs.getIntPref("flow.startingBufferLength")+'\'');
  17. //setVars("'live:'", '\''+prefs.getCharPref("flow.live")+'\''); //not sure
  18. setVars("'controlBarBackgroundColor:'", '\''+prefs.getCharPref("flow.controlBarBackgroundColor")+'\'');
  19. setVars("'hideControls:'", '\''+prefs.getBoolPref("flow.hideControls")+'\'');
  20. setVars("'timeDisplayFontColor:'", '\''+prefs.getCharPref("flow.timeDisplayFontColor")+'\'');
  21.  
  22. var cFig = fVars.join(",");
  23. LOG('cFig  '+cFig);
  24.  
  25.  
  26. LOG result below:
  27.  
  28. 'videoFile:''http%3A%2F%2Fash-v372.ash.youtube.com%2Fget_video%3Fvideo_id%3DtcUdzPgF7kA.flv','autoPlay:''false','autoBuffering:''true','usePlayOverlay:''true','initialScale:''fit','initialVolumePercentage:''50','useNativeFullScreen:''true','startingBufferLength:''3','controlBarBackgroundColor:''#333333','hideControls:''false','timeDisplayFontColor:''#FFFFFF'

Plain Code

var fVars = [];

function setVars(key, value){

    fVars.push(key+value);

}

setVars("'videoFile:'", '\''+rH+'.flv'+'\'');
setVars("'autoPlay:'", '\''+prefs.getBoolPref("flow.autoPlay")+'\'');
setVars("'autoBuffering:'", '\''+prefs.getBoolPref("flow.autoBuffering")+'\'');
setVars("'usePlayOverlay:'", '\''+prefs.getBoolPref("flow.usePlayOverlay")+'\'');
setVars("'initialScale:'", '\''+prefs.getCharPref("flow.initialScale")+'\'');
setVars("'initialVolumePercentage:'", '\''+prefs.getIntPref("flow.initialVolumePercentage")+'\'');
setVars("'useNativeFullScreen:'", '\''+prefs.getBoolPref("flow.useNativeFullScreen")+'\''); //might need to be set to false for Linux users
setVars("'startingBufferLength:'", '\''+prefs.getIntPref("flow.startingBufferLength")+'\'');
//setVars("'live:'", '\''+prefs.getCharPref("flow.live")+'\''); //not sure
setVars("'controlBarBackgroundColor:'", '\''+prefs.getCharPref("flow.controlBarBackgroundColor")+'\'');
setVars("'hideControls:'", '\''+prefs.getBoolPref("flow.hideControls")+'\'');
setVars("'timeDisplayFontColor:'", '\''+prefs.getCharPref("flow.timeDisplayFontColor")+'\'');

var cFig = fVars.join(",");
LOG('cFig  '+cFig);


LOG result below:

'videoFile:''http%3A%2F%2Fash-v372.ash.youtube.com%2Fget_video%3Fvideo_id%3DtcUdzPgF7kA.flv','autoPlay:''false','autoBuffering:''true','usePlayOverlay:''true','initialScale:''fit','initialVolumePercentage:''50','useNativeFullScreen:''true','startingBufferLength:''3','controlBarBackgroundColor:''#333333','hideControls:''false','timeDisplayFontColor:''#FFFFFF'

Permalink: http://codedumper.com/ebegu