Skip to content

Commit ce30de4

Browse files
[SFW Switch] Additional Fields Patched, Additional Plugin Integration Added (#677)
* Added additional plugin support, patched additional fields previously left uncensored. * Update README Clarified instructions for adding custom selectors to additional_plugins.css. --------- Co-authored-by: DogmaDragon <[email protected]>
1 parent 16aeef5 commit ce30de4

File tree

4 files changed

+91
-5
lines changed

4 files changed

+91
-5
lines changed

plugins/SFWSwitch/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ https://discourse.stashapp.cc/t/sfw-switch/4658
99
- Gray = Blur disabled
1010
- Toggling the button blurs cover images and other content.
1111
- Hovering over an image temporarily removes the blur.
12+
- Extends the blurring functionality to some community plugins.
13+
- Custom selectors should should be added to `additional_plugins.css` file.
1214

1315
## Screenshots
1416

@@ -17,4 +19,4 @@ https://discourse.stashapp.cc/t/sfw-switch/4658
1719
## Credit
1820
Original plugin by Belleyy [here](https://github.com/Belleyy/CommunityScripts/tree/pluginUI_SFWSwitch/plugins/SFW%20Switch).
1921

20-
The CSS code used is provided by fl0w#9497 [here](https://discourse.stashapp.cc/t/custom-css-snippets/4043#p-8143-blur-nsfw-images-and-unblur-on-mouse-over-41).
22+
The CSS code used is provided by fl0w#9497 [here](https://discourse.stashapp.cc/t/custom-css-snippets/4043#p-8143-blur-nsfw-images-and-unblur-on-mouse-over-41).
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
/* [Global changes] Blur NSFW images and unblur on mouse over */
2+
3+
/*Credit: fl0w#9497 */
4+
5+
/* === MORE BLUR === */
6+
7+
/* Stash Battle */
8+
.pwr-scene-image-container,
9+
.pwr-scene-image-container,
10+
.pwr-hover-preview,
11+
.pwr-scene-image-container .pwr-scene-image,
12+
13+
/* HotOrNot */
14+
.hon-performer-image,
15+
.hon-scene-image,
16+
.hon-image-image-container,
17+
.hon-image-image,
18+
19+
/* O Stats */
20+
.custom-stats-row .stats-element img,
21+
#on-this-day-section [style*="position: relative; height: 400px"]
22+
{
23+
filter: blur(30px);
24+
}
25+
26+
/* === LESS BLUR === */
27+
28+
/* StashBattle */
29+
.pwr-scene-info,
30+
31+
/* HotOrNot */
32+
.hon-performer-info.hon-scene-info,
33+
34+
/* O Stats */
35+
.custom-stats-row .stats-element,
36+
#on-this-day-section [style*="display: flex"][style*="cursor: pointer"] img,
37+
#on-this-day-section [style*="display: flex"][style*="cursor: pointer"] img + div,
38+
#on-this-day-section > div:last-child
39+
{
40+
filter: blur(2px);
41+
}
42+
43+
/* StashBattle */
44+
.pwr-scene-image-container:hover,
45+
.pwr-scene-image-container:hover .pwr-hover-preview,
46+
.pwr-scene-image-container:hover .pwr-scene-image,
47+
.pwr-scene-info:hover,
48+
49+
/* HotOrNot */
50+
.hon-performer-image:hover,
51+
.hon-scene-image:hover,
52+
.hon-image-image-container:hover,
53+
.hon-image-image:hover,
54+
.hon-performer-info.hon-scene-info:hover,
55+
56+
/* O Stats */
57+
.custom-stats-row .stats-element:hover,
58+
.custom-stats-row .stats-element:hover img,
59+
#on-this-day-section [style*="display: flex"][style*="cursor: pointer"]:hover img,
60+
#on-this-day-section [style*="display: flex"][style*="cursor: pointer"]:hover img + div,
61+
#on-this-day-section > div:last-child:hover,
62+
#on-this-day-section [style*="position: relative; height: 400px"]:hover
63+
{
64+
filter: blur(0px);
65+
}

plugins/SFWSwitch/sfw.css

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
/*Credit: fl0w#9497 */
44

55
/* === MORE BLUR === */
6+
67
/* scene */
78
.scene-card-preview,
89
.vjs-poster,
@@ -34,11 +35,13 @@ img.performer,
3435
/* tag */
3536
.tag-card-image
3637

38+
3739
{
3840
filter: blur(30px);
3941
}
4042

4143
/* === LESS BLUR === */
44+
4245
/* common */
4346
.card-section-title,
4447

@@ -48,6 +51,7 @@ filter: blur(30px);
4851
h3.scene-header,
4952
.studio-logo,
5053
.image-thumbnail,
54+
.TruncatedText.scene-card__description,
5155

5256
/* image */
5357
h3.image-header,
@@ -57,20 +61,26 @@ h3.image-header,
5761

5862
/* gallery */
5963
h3.gallery-header,
64+
.TruncatedText.gallery-card__description,
6065

6166
/* studio */
6267
.studio-details .logo,
6368
.studio-details > div > h2,
69+
.studio-card__details,
70+
.studio-parent-studios,
6471

6572
/* tag */
6673
.logo-container > .logo,
67-
.logo-container > h2
74+
.logo-container > h2,
75+
.TruncatedText.tag-description,
76+
.tag-parent-tags
6877

6978
{
7079
filter: blur(2px);
7180
}
7281

7382
/* === UNBLUR ON HOVER === */
83+
7484
/* common */
7585
.thumbnail-section:hover *,
7686
.card:hover .card-section-title,
@@ -87,6 +97,7 @@ div:hover > .scene-header,
8797
.scene-card-preview:hover,
8898
.scrubber-item:hover,
8999
.scene-image:hover,
100+
.TruncatedText.scene-card__description:hover,
90101

91102
/* image */
92103
.image-image:hover,
@@ -100,17 +111,24 @@ div:hover > .image-header,
100111
/* gallery */
101112
div:hover > .gallery-header,
102113
table > tbody > tr > td:hover > a > img.w-100,
114+
.TruncatedText.gallery-card__description:hover,
103115

104116
/* performer */
105117
img.performer:hover,
106118

107119
/* studio */
108120
.studio-details .logo:hover,
109121
.studio-details:hover > div > h2,
122+
.studio-card__details:hover,
123+
.studio-parent-studios:hover,
124+
110125

111126
/* tag */
112127
.logo-container > .logo:hover,
113-
.logo-container:hover > h2
128+
.logo-container:hover > h2,
129+
.TruncatedText.tag-description:hover,
130+
.tag-parent-tags:hover
131+
114132
{
115133
filter: blur(0px);
116134
}

plugins/SFWSwitch/sfwswitch.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
name: SFW Switch
22
description: Add a button to blur covers and images.
3-
version: 1.3
3+
version: 1.4
44
url: https://discourse.stashapp.cc/t/sfw-switch/4658
55
ui:
66
javascript:
77
- sfw.js
88
css:
9-
- sfw.css
9+
- sfw.css
10+
- additional_plugins.css

0 commit comments

Comments
 (0)