А такие значки не могут влиять на скрипт ?
CODE:function JS_SaveExtension(string path)
{
string t_Script_JS="^r^n ^r^nif (T==1) return;^r^nT=1;^r^nif (Date.now()<T_Pz+Pz)T=0; return;^r^n";
t_Script_JS=t_Script_JS+"if (UpdatePade==2)if (T_OBN==1)" + "if (document.readyState == ^"complete^")" + "UpdatePade=1; waiUpdatePade=1; addUpdatePade(); T=0; return;^r^n";
t_Script_JS=t_Script_JS+"if (UpdatePade==2) ^r^n";
t_Script_JS=t_Script_JS+"if (waiUpdatePade-Date.now()<0)st=NUpdatePade; addNum(); " + "UpdatePade=1; waiUpdatePade=1; addUpdatePade(); T_Pz=Date.now(); Pz=1; addPz(); " + "wai=Date.now(); addWai(); T=0; All_Call_Send(); return; T=0; return;^r^n" + Script_JS;
t_Script_JS=t_Script_JS+"st=1; wai=1; T_Pz=Date.now(); Pz=1; UpdatePade=1; waiUpdatePade=1;^r^n";
t_Script_JS=t_Script_JS+"addNum(); addUpdatePade(); addPz(); addWai(); All_Call_Send();^r^n^r^n";
string t, content="";
if (fopen (path+"content_template.js", "r")!=0)
{
while (freadline (t))content=content+t+"^r^n";
fclose();
}
regexreplace(1, #content, content, "(?<=function Run\(\))([\s\S])+(?=/^/EndRun\(\))", t_Script_JS);
content=Global_Var_C_JS+Var_JS+Call_Get_Fun_JS+content+"^r^n"+Get_Global_Var_JS+Send_Global_Var_JS;
content=content+"function All_Call_Send()^r^n^r^n"+All_Call_Send+"";
content=ansitoutf8(content);
if (fopen (path+"content.js", "w")!=0)
{
fwrite(content);
fclose();
}
content=Global_Var_B_JS;
if (fopen (path+"background_template.js", "r")!=0)
{
while (freadline (t))content=content+t+"^r^n";
fclose();
}
regexreplace(1, #content, content, "if \(S==0\)", Get_Back_Global_Var_JS+"if (S==0)");
regexreplace(1, #content, content, "if \(S==0\)^r^n\^r^n", "if (S==0)^r^n^r^n"+Send_Back_Global_Var_JS);
regexreplace(1, #content, content, "chrome.runtime.reload\(\);", Global_Reflesh_Var_JS+" chrome.runtime.reload();");
content=ansitoutf8(content);
if (fopen (path+"background.js", "w")!=0)
{
fwrite(content);
fclose();
}
}
(Добавление)
Может ошибка при сборке и поэтому у меня ошибка ?
(Добавление)
Не знаю, что норм, а что нет...
(Добавление)
в function JS_GlobalVar(string S) тоже такие значки есть CODE: Global_Var_B_JS=Global_Var_B_JS+masS[n]+"^r^n";
if (p==0) Send_Global_Var_JS=Send_Global_Var_JS+"function Send"+var+"()^r^nchrome.runtime.sendMessage(T"+var+":"+var+", function(response) var tst=response.farewell;);^r^n";
else Send_Global_Var_JS=Send_Global_Var_JS+"function Send"+var+"()^r^nchrome.runtime.sendMessage(T"+var+":String("+var+"), function(response) var tst=response.farewell;);^r^n";
Call_Get_Fun_JS=Call_Get_Fun_JS+"Get"+var+"();^r^n";
if (p==0) Get_Global_Var_JS=Get_Global_Var_JS+"function Get"+var+"()^r^nchrome.runtime.sendMessage(greeting:^"GlobalVar_"+var+"^",function(response)"+var+"=response.farewell;);^r^n";
else Get_Global_Var_JS=Get_Global_Var_JS+"function Get"+var+"()^r^nchrome.runtime.sendMessage(greeting:^"GlobalVar_"+var+"^",function(response)"+var+"=Number(response.farewell););^r^n";
Get_Back_Global_Var_JS=Get_Back_Global_Var_JS+"if (request.greeting==^"GlobalVar_"+var+"^")sendResponse(farewell:"+var+");S=1;^r^n";
Send_Back_Global_Var_JS=Send_Back_Global_Var_JS+"if (request.T"+var+")"+var+"=request.T"+var+";^r^n";
All_Call_Send=All_Call_Send+"Send"+var+"();^r^n";
CODE:Script_JS=Script_JS+"^r^n"; |