PageSourceSearch

https://blockblast.homes/_nuxt/wgQAb7MY.js

js blockblast.homes collected 2026-10-05 17:53:12 UTC 1,672 bytes, 1 lines download raw bytes

1class s{KEY="favorite_games";GAME_STORAGE_KEY="game_ratings";MAX_FAVORITE_GAMES=1e3;favoriteData=[];static _instance;static get instance(){return this._instance||(this._instance=new s),this._instance}init(){if(!(this.favoriteData.length>0)&&typeof window<"u"){const t=localStorage.getItem(this.KEY);this.favoriteData=t?JSON.parse(t):[]}}get(){return this.favoriteData}getGameIds(){return this.favoriteData.map(t=>t.game)}isFavorited(t){return this.favoriteData.some(a=>a.game===t)}updateGameRatingFavoriteStatus(t,a){if(typeof window<"u"){const e=localStorage.getItem(this.GAME_STORAGE_KEY),i=e?JSON.parse(e):{};i[t]||(i[t]={}),i[t].userFavorited=a,localStorage.setItem(this.GAME_STORAGE_KEY,JSON.stringify(i))}}add(t){if(typeof window<"u"&&t){const a=localStorage.getItem(this.KEY);let e=a?JSON.parse(a):[];if(e.some(i=>i.game===t))return;e.unshift({game:t,timestamp:Date.now(),favoritedAt:new Date().toISOString()}),e.length>this.MAX_FAVORITE_GAMES&&(e=e.slice(0,this.MAX_FAVORITE_GAMES)),localStorage.setItem(this.KEY,JSON.stringify(e)),this.favoriteData=e,this.updateGameRatingFavoriteStatus(t,!0)}}remove(t){if(typeof window<"u"&&t){const a=localStorage.getItem(this.KEY);let e=a?JSON.parse(a):[];e=e.filter(i=>i.game!==t),localStorage.setItem(this.KEY,JSON.stringify(e)),this.favoriteData=e,this.updateGameRatingFavoriteStatus(t,!1)}}toggle(t){return this.isFavorited(t)?(this.remove(t),!1):(this.add(t),!0)}clear(){if(typeof window<"u"){const t=this.getGameIds();localStorage.removeItem(this.KEY),this.favoriteData=[],t.forEach(a=>{this.updateGameRatingFavoriteStatus(a,!1)})}}getCount(){return this.favoriteData.length}}const r=s.instance;r.init();export{r as f};

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.