Planetsuzy Threads - Auto fold posts

This script will automatically fold some of the forum posts based on their content

2019-03-04 يوللانغان نەشرى. ئەڭ يېڭى نەشرىنى كۆرۈش.

ئاپتورى
babarian
باھا نومۇرى
0 0 0
نەشرى
1.0.1
قۇرۇلغان ۋاقتى
2019-02-27
يېڭىلانغان ۋاقتى
2019-03-04
Size
10.5 KB
ئىجازەتنامىسى
MIT
قوللايدىغىنى

The main purpose of this script is to help users scroll down over uninteresting content faster. It does so by providing a small toggle (▼) to fold or unfold the post contents and by a way for the user to 'blacklist' certain content.

If a post has any external hyperlinks, a list of the respective domain names are added next to the post folding toggle. Clicking any of these domain names toggles their 'blacklisted' state on or off. The blacklist is stored only in the local user script settings.

The changes do not apply immediately, the page must be reloaded to in order see them.

Any post with hyperlinks leading only to blacklisted domains will be folded by default, with only their header visible. It can still be viewed by unfolding the post manually. Links to blacklisted domains will be of a lighter color in order to emphasize other, non-blacklisted links in the post.

Manual folding/unfolding of individual posts is not persisting and upon the next page load the posts will be either visible or folded based on the rules above.