PageSourceSearch

https://blackall.ai/assets/index-DenaYTmZ.js

js blackall.ai collected 2026-10-02 01:11:17 UTC 1,923 bytes, 1 lines download raw bytes

1let n=null,c=null;function u(e){c=e&&e.trim()?e.trim():null}function h(){return c}function l(e){n=e}function t(e,a){try{n?.track?.(e,a)}catch{}}function s(e){const a=typeof window<"u"?window.location.origin:"";let r;try{r=new URL(e.url,a||void 0)}catch{return e.url}const i=n?.getReferralCode?.()??c;return i&&!r.searchParams.has("ref")&&!r.searchParams.has("r")&&r.searchParams.set("ref",i),r.searchParams.has("utm_source")||r.searchParams.set("utm_source",e.channel??"share"),r.searchParams.has("utm_medium")||r.searchParams.set("utm_medium","share"),r.searchParams.has("utm_campaign")||r.searchParams.set("utm_campaign",e.surface),r.toString()}async function f(e){const a=e.surface;t("share_opened",{surface:a,app:n?.app});const r=s({...e,channel:"copy"});try{return await navigator.clipboard.writeText(e.text?`${e.text} ${r}`:r),t("share_completed",{surface:a,channel:"clipboard",app:n?.app}),"clipboard"}catch{return t("share_failed",{surface:a,app:n?.app}),"failed"}}function m(){if(typeof window>"u")return!1;try{const e=new URLSearchParams(window.location.search);return e.get("utm_medium")==="share"||e.has("ref")}catch{return!1}}function o(e){const a=s({...e,channel:e.channel??"naver"});return{url:encodeURIComponent(a),title:encodeURIComponent(e.title)}}function d(e){const{url:a,title:r}=o({...e,channel:"naver"});return`https://share.naver.com/web/shareView?url=${a}&title=${r}`}function p(e){const{url:a,title:r}=o({...e,channel:"band"});return`https://band.us/plugin/share?body=${r}%0A&route=${a}`}function w(e,a){try{const r=window.open(e,"_blank","noopener,noreferrer,width=600,height=600");return t("share_completed",{surface:a,channel:"naver_or_band",app:n?.app}),!!r}catch{return t("share_failed",{surface:a,app:n?.app}),!1}}export{m as arrivedFromShare,p as bandShareUrl,s as buildShareUrl,l as initShare,h as myReferralCode,d as naverShareUrl,w as openShareWindow,u as setMyReferralCode,f as share};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.