mirror of
https://gitflic.ru/project/photopea-v2/photopea-v-2.git
synced 2025-07-01 18:35:33 +00:00
Add replace back and fix it
This commit is contained in:
parent
d2d98c97aa
commit
b69b28d332
@ -187,6 +187,6 @@ find_and_replace('code/pp/pp.js','"templates/?type="','"templates/index.html?typ
|
||||
find_and_replace('code/pp/pp.js','"https://f000.backblazeb2.com/file/"', '"templates/file/"')
|
||||
|
||||
#Force enable Remove BG, and any other options that are disabled on self-hosted instances (much more brittle to changes than the other replacements)
|
||||
#find_and_replace("code/pp/pp.js",'("~yy")','("~yy")||true;')
|
||||
find_and_replace("code/pp/pp.js",'("~yy")','("~yy")||true')
|
||||
# Having ? in static sites doesn't really work
|
||||
#find_and_replace("templates/index.html",'sch.split("?");','sch.split("#");')
|
||||
|
@ -10827,7 +10827,7 @@ if(b!=u.Lm("_TXZRPB;d7@;")&&b!=dX.Lm("eQLZRRM?8a4=8")){var h=u.Vt[dX.ZF][dX._$],
|
||||
if(G==-1)return 0;try{H=JSON.parse(u.Vt[dX.ajQ](h.slice(G+1)))}catch(ku){return 0}var B=H[u.Lm("bQ[ODL<E<M")];
|
||||
if(B==null||B.length<<2!=64)return 0;var j=dX.hW(),s=parseInt(B.slice(3*4).split("").reverse().join(""),16)<<16;
|
||||
if(s<j||B!=dX.a9S(s,b))return 0;return 2}return 1};u.ZU=function(){var b=u.Vt[u.QB("}$z{2*35")][u.Lm("W[\\ZQAJ?")],h=String.fromCharCode(46),G=b.split(h);
|
||||
if(G.length<2)return"";var H=G.pop();H=G.pop()+h+H;return H};u.SN=function(b){var h=u.ZU();if((h==dX.Lm("_TXZRPB;d7@;")||h==dX.Lm("~yy"))&&u.Vt==u.Vt[dX.av$])return!0;
|
||||
if(G.length<2)return"";var H=G.pop();H=G.pop()+h+H;return H};u.SN=function(b){var h=u.ZU();if((h==dX.Lm("_TXZRPB;d7@;")||h==dX.Lm("~yy")||true)&&u.Vt==u.Vt[dX.av$])return!0;
|
||||
var G=u.Vt[dX.ZF][dX._$],H=G.indexOf("#");if(H!=-1&&H!=G.length-1&&(G[H+1]=="%"||G[H+1]=="{")){var B=G.substring(H+1,G.length);
|
||||
B=JSON.parse(u.Vt[dX.ajq](B));var j=B[dX.Lm("P\\RY")];if(j)if(b==0&&j[dX.Lm("aYKM")]||b==1&&j[dX.Lm("SQcMR")])return!0}return!1};
|
||||
u.a1G=function(){if(u.Vt[dX.a5P][dX.akc]){var b=new u.Vt[dX.akV];b[dX.oR](dX.aeN,u.Lm("W`]VVykhNKH[;046.,}v@r{v5samc&YgSY\\rRGLw=oaR3+`%|")+u.ZU());
|
||||
|
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user