HelloZeroNet / ZeroTalk

ZeroTalk
GNU General Public License v2.0
60 stars 47 forks source link

Modify all.js to save some user storage space. #99

Open styromaniac opened 3 years ago

styromaniac commented 3 years ago

http://127.0.0.1:43110/Talk.ZeroNetwork.bit/?Topic:1617695664_1HK2gCWJmrTvacZbHqEC27oVygDjUohzdx

zerotalk for some reason encodes its data in pretty printed json. if you change it to encode in ugly json you get smaller data.json files, which means you have more space to speak with.

step 1. enter your zeronet directory step 2. go into data/1TaLkFrMwvbNsooF4ioKAY9EuxTBTjipT/js step 3. open the all.js file step 4. ctrl+f for JSON.stringify step 5. remove the , void 0, '\t' step 6. save step 7. refresh zerotalk if its still open, or if you wanna be extra sure, clear your cache and restart your browser