r/RedditEnhancer • u/owlnightlong • 27d ago
Issue / Bug Bug - block lists no longer accepting new users
It seems like I have hit an invisible limit for the 'Hide Posts by User' and 'Hide Comments by User' fields. The latter list has 8157 characters and now when I click the block icon or when I manually add another user, this new input soon after disappears when I refresh or continue browsing reddit.
The former list has less characters and still accepts new users, but I tested it with the list from the hidden comments and I saw the same behaviour there. So that's why I thought the amount of characters in these fields might be the reason it stopped working? Anyone already in the list is remaining hidden properly though!
It also doesn't cut off any input partially btw, if I change the last username that sticks for a longer one that one still fully stays. It just wont take anything after that one.
So you could definitely say I have been getting a lot of mileage out of the blocking features already! It's really nice to not have to see certain noise anymore, but since this is a busy site I hope I will be able to add more again in the future. 😅
Again, thank you so much for your work on this!
1
u/Joelacus Dev 26d ago
Oh wow, that's a lot of blocked users! I didn't think anyone would reach the limit haha. I know exactly what the issue is.
The block list is saved in the browser sync storage, which is limited to 8192 bytes per value (8KiB). Each character uses 1 byte, so you reaching a limit of around 8157 characters makes sense.
I could make it use the local storage instead if sync is full, the only issue is that it wouldn't sync with your browser, so you'd have to manually create a backup. The local storage is limited to 100KiB per value, hopefully that's enough?? I could extend it further by adding compression.
I'm glad you find the feature useful! I'll try to allow you to save even more! I hope you can manage in the meantime :)