Skip to content

Blurs or hides card thumbnails if the path to the thumbnail contains the string "nsfw"

License

Notifications You must be signed in to change notification settings

CurtisDS/stupid-nsfw-card-blur-a1111

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stupid NSFW Card Blur

This extension is a relatively light weight extension that doesn't do any analysis on any actual images. It does not blur or hide any NSFW images that are generated. It is only intended to blur or hide images from the extra network tab model cards and it will only do so if the path to the image preview contains the text "nsfw" somewhere in the path.

If you use the "Blur" setting you can hover over the model card to unblur the thumbnail. If you use the "Hide" setting it will remain hidden even when hovering.

Setup:

For the most simple setup of how to use this extension:

  1. In your model folder create a subfolder called "nsfw" (do this for your models, embeddings, lora, and hypernetwork folders)
  2. Move any models that you want to have the thumbnails blurred/hidden along with their preview images into these folders

Again this extension is not doing anything smart, it is just looking for the string "nsfw" inside the src attribute of the image tag. By moving the models into a folder named "nsfw" this ensures that the string will be present in the src attribute.

If the model contains nsfw in the model file name this will also cause the thumbnails to be blurred or hidden without needing to move the model.

New UI Button:

A button has been added to the Extra Networks controls area to allow you to change between "Blur" "Hide" or "Show". Using these buttons will not permanently change the default setting. To do that you will need to update the default setting in the Settings tab.

menu-image

This is what it looks like depending on the setting:

Blur:

Note: hovering over the card will unblur the image

image

Hide:

Note: hovering over the card will NOT show the image

image

Show:

image

About

Blurs or hides card thumbnails if the path to the thumbnail contains the string "nsfw"

Resources

License

Stars

Watchers

Forks