function getData(ntpurl,delta,captime,clickto){
newTabURL = ntpurl;
ChromeGesture.MINIMUM_DELTAY = delta;
ChromeGesture.MINIMUM_DELTAX = delta;
ChromeGesture.DELAY_BETWEEN_CAPTURES = captime;
ChromeGesture.CLICK_TIMEOUT = clickto;
if (popupLoader && contentWindow.CHROMEGESTURES_loadData){
wind.close();
contentWindow.CHROMEGESTURES_loadData = false
wind = null ;
}
}
if (!us)contentWindow.CHROMEGESTURES_setData = getData;
// LOAD SAVED DATA
if (!us){
if (popupLoader){
contentWindow.CHROMEGESTURES_loadData = true ;
wind = window.open( "chrome-extension://" +chrome.extension.id_+ "/options.html" , "_blank" ,
"directories=no,height=1,width=1,left=-100,top=-100,location=no," +
"menubar=no,scrollbars=no,status=no,titlebar=no,toolbar=no" );
}
* This source code was highlighted with Source Code Highlighter .
function getData(ntpurl,delta,captime,clickto){
newTabURL = ntpurl;
ChromeGesture.MINIMUM_DELTAY = delta;
ChromeGesture.MINIMUM_DELTAX = delta;
ChromeGesture.DELAY_BETWEEN_CAPTURES = captime;
ChromeGesture.CLICK_TIMEOUT = clickto;
if (popupLoader /*&& contentWindow.CHROMEGESTURES_loadData*/ ){
wind.close();
//contentWindow.CHROMEGESTURES_loadData = false
wind = null ;
}
}
//if(!us)contentWindow.CHROMEGESTURES_setData = getData;
// LOAD SAVED DATA
if (!us){
if (popupLoader){
//contentWindow.CHROMEGESTURES_loadData = true;
wind = window.open( "chrome-extension://" +chrome.extension.id_+ "/options.html" , "_blank" ,
"directories=no,height=1,width=1,left=-100,top=-100,location=no," +
"menubar=no,scrollbars=no,status=no,titlebar=no,toolbar=no" );
}
* This source code was highlighted with Source Code Highlighter .
Source: https://habr.com/ru/post/66508/
All Articles