Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] WS/NWS discernible class #129

Closed
saxamaphone69 opened this issue Dec 20, 2024 · 2 comments
Closed

[Feature Request] WS/NWS discernible class #129

saxamaphone69 opened this issue Dec 20, 2024 · 2 comments
Labels
feature request New feature or request

Comments

@saxamaphone69
Copy link

More so for feature parity, in the native 4chan extension, a class is added to the body to indicate if a board is worksafe (ws) or not worksafe (nws).

I believe it's around here: https://github.com/4chenz/ChanTracking0/blob/master/javascripts/extension.js#L9353
and I do the same (poorly) in my sidedish userscript: https://github.com/saxamaphone69/ss21/blob/main/sidedish.user.js#L247

Would be nice if it was also within 4chan XT. I suppose the ws_style variable could be used (it's in the <head>), or the internal board list within 4chan X that checks if a board is nsfw. Ideally though, the ws/nws class is added to html like the other helper classes (index, yotsuba-b) are.

@TuxedoTako TuxedoTako added the feature request New feature or request label Dec 21, 2024
TuxedoTako added a commit that referenced this issue Dec 22, 2024
- Removed the css for the header for widths above 1300px, because it was preventing long custom navigation lists from
  wrapping. [#120](#120) I don't know what the purpose was of the different
  style, the commit where that was added isn't really descriptive: c396db4? So let me
  know if I broke something.
- Limit subject input to 100 characters. [#128](#128)
- Added ws and nsw classes for work safe and not work safe boards.
  [#129](#129)
- Using shift click to hide a post no longer selects half the page.
  [#131](#131)
- The file select dialog for the settings import will only show json files.
@TuxedoTako
Copy link
Owner

Added in 2.19.0.

@saxamaphone69
Copy link
Author

Amazing as usual Tako, thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants