Tip: Click lines to highlight, hold ctrl/cmd to multi-select
http://codedumper.com/ebegu (26-Jul @ 07:15)
Syntax Highlighted 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'
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'