Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ultraviollett/show-all-mastodon-cws-addon
Add-on that reveals all mastodon tweets hidden by content warnings (only tested in FireFox)
https://github.com/ultraviollett/show-all-mastodon-cws-addon
add-on add-ons-for-firefox mastodon
Last synced: 5 days ago
JSON representation
Add-on that reveals all mastodon tweets hidden by content warnings (only tested in FireFox)
- Host: GitHub
- URL: https://github.com/ultraviollett/show-all-mastodon-cws-addon
- Owner: ultraviollett
- License: mit
- Created: 2024-01-30T19:40:19.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-02-02T00:03:30.000Z (11 months ago)
- Last Synced: 2024-11-07T05:56:49.023Z (about 2 months ago)
- Topics: add-on, add-ons-for-firefox, mastodon
- Language: JavaScript
- Homepage:
- Size: 27.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Automatically Reveal Mastodon CW posts
This is an add-on that reveals all mastodon tweets hidden by content warnings. This is the menu:
You can toggle the first button to enable/disable the extension, and you can toggle the second to show/hide all Mastodon posts hidden by a content warning.
## Known Issues:
- Toggling to Disabled if you previously Enabled it is sometimes buggy, as the code will act as if its enabled in certain areas.
- if you toggle to Disabled, then you reveal some CW posts, then you toggle to Enabled, and toggle to "Hide All", the posts you revealed won't be recognized by the extension and will be left revealed. This is because Mastodon keeps removing my "show-cw-addon" class.
- Most issues can be avoided if you reload the page everyime you toggle to Disabled.## Technical Information
Mastodon posts all have the class "status__content__text". Those hidden by a Content Warning don't have the class "status__content__text--visible".This add-on applies "status__content__text--visible" to all with class "status__content__text" without "status__content__text--visible". It adds the class "show-cw-addon" to these elements so when they need to be hidden, they can be found by their class.