From 1e11850cc035b62ad8ed358358449d2590c19dbd Mon Sep 17 00:00:00 2001 From: zjcqoo Date: Sun, 5 Sep 2021 17:29:58 +0800 Subject: [PATCH] init --- 404.html | 1 + x.js | 1 + 2 files changed, 2 insertions(+) create mode 100644 404.html create mode 100644 x.js diff --git a/404.html b/404.html new file mode 100644 index 0000000..38bc704 --- /dev/null +++ b/404.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/x.js b/x.js new file mode 100644 index 0000000..13ccb56 --- /dev/null +++ b/x.js @@ -0,0 +1 @@ +!function(){var e,t,n,a,r="li3Aisr0sjzM8qKykq1t0oTJrfQCnaaFe1FP3qaMyuw=",o=["https://i0.hdslb.com/bfs/article/7c52f9b463fbf42c10f6eaf88c7ec5b8f36b9794.png","https://pic3.zhimg.com/80/v2-d654e2c99f2db865304cdcc0f68b942f.png","https://upload-images.jianshu.io/upload_images/6294093-57115ca9d138b891.png"];function c(e){return e.split("?")[0].replace(/[^/]+$/,"")}self.document?function(){var e=document.documentElement;function t(t){e.innerHTML=t}function n(){location.reload()}var a,i=document.currentScript,s=i.src;if(s){var u=navigator.serviceWorker;if(!u)return void t("Error: Service Worker is not supported");var f=u.register(s).catch((function(e){t(e.message)}));a=c(s)}else a=i.dataset.root;function h(e){e?crypto.subtle.digest("SHA-256",e).then((function(t){var o=new Uint8Array(t),c=btoa(String.fromCharCode.apply(null,o));if(r===c){var i,s,u,h=(i=new Uint32Array(e),s=new Uint8Array(3*i.length),u=0,i.forEach((function(e){s[u++]=e,s[u++]=e>>8,s[u++]=e>>16})),s);caches.delete(".web2img").then((function(){caches.open(".web2img").then((function(e){(function(e,t){var n=e.indexOf(13),r=e.subarray(0,n),o=(new TextDecoder).decode(r),c=JSON.parse(o),i=n+1,s=[];for(var u in c){var f=c[u];f["cache-control"]="max-age=60";var h=f["content-length"],d=e.subarray(i,i+h),l=new Request(a+u),p=new Response(d,{headers:f});s.push(t.put(l,p)),i+=h}return Promise.all(s)})(h,e).then((function(){f?f.then(n):n()}))}))}))}else m()})):m()}var d=function(e){var t=new Image;t.onload=function(){var e=document.createElement("canvas");e.width=t.width,e.height=t.height;var n=e.getContext("2d");n.drawImage(t,0,0);var a=n.getImageData(0,0,t.width,t.height).data.buffer;parent.postMessage(a,"*",[a])},t.onerror=function(){parent.postMessage("","*")},t.crossOrigin=1,t.src=e.data},l=document.createElement("iframe");l.src="data:text/html,