【提问】the great photo app-需求提交社区-互动-iPA资源站

提问the great photo app

the great photo app

const handleInjectSnifferFileScript = function i(t){let r,e=new WeakSet,n=new Set,o=[];const i=new Map,c={generateUID:()=>{function t(t){return(tt(r))).join(“”):Math.floor(Math.random()*2**55).toString(36)},removeQuotes:t=>t.replace(/^[‘”]|[‘”]$/g,””),getUrlPathName:function(t){let r=””;this.isURL(t)?(t=decodeURIComponent(t),r=new URL(t).pathname):r=window.location.pathname;let e=r.split(“/”);return e=e.filter((t=>{if(t&&””!=t)return t})),e.pop()},getUrlInPath:function(t){if(!t)return””;let r=t,e=/[?&]([^&=]+)=((https?:\/\/)?[\w-]+(\.[\w-]+)+([\w.,@?^=%&:/~+#-]*[\w@?^=%&/~+#-])?)/g,n=t.matchAll(e);for(const o of n){o[1];r=o[2]}return r},parseURL:(t,r=null)=>{const e=`${t}${r?`;${r}`:””}`;if(i.has(e))return i.get(e);if(r){const n=new URL(t,c.fixBaseURL(r));return i.set(e,n),n}const n=new URL(c.fixBaseURL(t));return i.set(t,n),n},getAbsoluteURL:(t,r)=>{if(r.match(/^data\\?\:/))return r;if(/^\/\//.test(r))return`${location.protocol}${r}`;const e=c.parseURL(t),n=c.parseURL(r,e.href);return n.href},getBaseBath:t=>{const r=c.parseURL(t);return`${r.origin}${r.pathname.replace(/\?.*$/,””).replace(/(\/)([^\\/]+)$/i,”$1″)}`},fixBaseURL:t=>(r||(r=document.createElement(“a”)),r.href=t,r.href),isURL:function(t){return!!t&&/^http[s]?:\/\/.*/.test(t)}};function s(){f(),l(),p()}function a(){l(),p()}function f(){window===window.top&&window.addEventListener(“message”,(t=>{let r=t.data.pid,e=t.data.name;if(“FETCH_FILELIST_FROM_CONTENT”===e)if(o&&o.length){const e=t.data.pageUrl;window.postMessage({pid:r,name:”PUSH_FILES_TO_TRANSFER”,fileList:o,pageUrl:e})}else a()}))}function p(){let t=new MutationObserver((function(t){t.map((function(t){if(t.addedNodes)for(let r=0;r{if(t&&!e.has(t)&&”A”==t.nodeName){e.add(t);let r=t.href,n=t.innerText;if(!r)return;r=c.removeQuotes(r),y(r,n,window.location.href)}}))}function y(t,r,e){if(!t)return””;if(t.match(/^#|tel\:|mailto\:/))return””;t=c.getUrlInPath(t);let i=/\.(zip|txt|js|rar|pdf|ppt|pptx|xls|xlsx|doc|docx|xml|csv|json|key|exe|dmg|iso)$/i;if(!t.match(i))return””;const u=v(t,e);if(u&&!n.has(u)){n.add(u);let t=c.getUrlPathName(u);r?t!=r&&(r=document.title+t):r=document.title+t,t.length{“complete”===document.readyState&&l()}}

handleInjectSnifferFileScript();

请登录后发表评论

    没有回复内容