Skip to content

Commit 1662751

Browse files
[SFW Switch] Audio handling + Additional plugin support (#679)
* Added additional plugin support, patched additional fields previously left uncensored. * Update README Clarified instructions for adding custom selectors to additional_plugins.css. * SFW Switch now mutes all sound when enabled by default. * Refactored main css, all UI functions should be accouted for now. Updated plugin yaml description * targeted stats-elements rather than m-sm-auto to prevent unwanted css stylings. Loosened blur * Re-added performer card profile pic * Added audio boolean setting (disabled by default), added additional configuration for hot or not * adjusted img blur * Added transition to all unblur * Major Improvement: Fixed remaining unblurred features, fixed zombie audio bug. * Readded readme * Improvement: Added individual wall blur functionality for walls * Fix double blur for groups, fix unblur in performer tagger --------- Co-authored-by: DogmaDragon <103123951+DogmaDragon@users.noreply.github.com>
1 parent 74b0986 commit 1662751

4 files changed

Lines changed: 250 additions & 79 deletions

File tree

plugins/SFWSwitch/additional_plugins.css

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,22 @@
1212

1313
/* HotOrNot */
1414
.hon-performer-image,
15+
.hon-performer-card,
1516
.hon-scene-image,
17+
.hon-selection-image,
1618
.hon-image-image-container,
1719
.hon-image-image,
1820

21+
1922
/* O Stats */
2023
.custom-stats-row .stats-element img,
21-
#on-this-day-section [style*="position: relative; height: 400px"]
24+
#on-this-day-section [style*="position: relative; height: 400px"],
25+
26+
/* Sprite Tab */
27+
.sprite-cell
2228
{
23-
filter: blur(30px);
29+
filter: blur(30px);
30+
transition: filter 0.25s ease;
2431
}
2532

2633
/* === LESS BLUR === */
@@ -29,6 +36,7 @@ filter: blur(30px);
2936
.pwr-scene-info,
3037

3138
/* HotOrNot */
39+
.hon-selection-name,
3240
.hon-performer-info.hon-scene-info,
3341

3442
/* O Stats */
@@ -37,7 +45,8 @@ filter: blur(30px);
3745
#on-this-day-section [style*="display: flex"][style*="cursor: pointer"] img + div,
3846
#on-this-day-section > div:last-child
3947
{
40-
filter: blur(2px);
48+
filter: blur(2px);
49+
transition: filter 0.25s ease;
4150
}
4251

4352
/* StashBattle */
@@ -48,10 +57,17 @@ filter: blur(2px);
4857

4958
/* HotOrNot */
5059
.hon-performer-image:hover,
60+
.hon-performer-card:hover,
5161
.hon-scene-image:hover,
5262
.hon-image-image-container:hover,
5363
.hon-image-image:hover,
5464
.hon-performer-info.hon-scene-info:hover,
65+
.hon-selection-card:hover,
66+
.hon-selection-name:hover,
67+
.hon-selection-image:hover,
68+
69+
/* Sprite Tab */
70+
.sprite-cell:hover,
5571

5672
/* O Stats */
5773
.custom-stats-row .stats-element:hover,

plugins/SFWSwitch/sfw.css

Lines changed: 98 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -1,134 +1,173 @@
1-
/* [Global changes] Blur NSFW images and unblur on mouse over */
2-
3-
/*Credit: fl0w#9497 */
41

52
/* === MORE BLUR === */
3+
/* common */
4+
.thumbnail-container img,
5+
.detail-header-image,
6+
.wall-item-gallery,
67

78
/* scene */
8-
.scene-card-preview,
9-
.vjs-poster,
10-
video,
9+
.scene-player-container,
1110
.scene-cover,
11+
.scene-card-preview,
1212
.scrubber-item,
1313
.scene-image,
14+
.scene-card img,
15+
.wall-item-media,
16+
.wall-item.show-title,
1417

1518
/* image */
16-
.image-card-preview,
17-
.image-image,
18-
.gallery-image,
19+
.image-card img,
20+
.image-thumbnail,
21+
.Lightbox-carousel,
22+
.react-photo-gallery--gallery img,
1923

2024
/* group */
2125
.group-card-image,
22-
.group-images,
2326

2427
/* gallery */
28+
.gallery-image,
2529
.gallery-card-image,
26-
table > tbody > tr > td > a > img.w-100,
30+
.gallery-card img,
31+
.gallery-cover img,
32+
.GalleryWallCard.GalleryWallCard-portrait,
33+
.GalleryWallCard.GalleryWallCard-landscape,
2734

2835
/* performer */
29-
.performer-card-image,
30-
img.performer,
36+
.performer-card img,
3137

3238
/* studio */
3339
.studio-card-image,
40+
.studio-card img,
3441

3542
/* tag */
36-
.tag-card-image
37-
38-
43+
.tag-card img
3944
{
40-
filter: blur(30px);
45+
46+
filter: blur(30px);
47+
transition: filter 0.25s ease;
4148
}
4249

4350
/* === LESS BLUR === */
4451

4552
/* common */
4653
.card-section-title,
54+
.detail-item-value.description,
55+
.detail-item-value,
56+
.TruncatedText,
4757

4858
/* scene */
4959
.scene-studio-overlay,
5060
.scene-header > h3,
5161
h3.scene-header,
52-
.studio-logo,
53-
.image-thumbnail,
5462
.TruncatedText.scene-card__description,
63+
.queue-scene-details,
64+
.marker-wall,
5565

56-
/* image */
57-
h3.image-header,
58-
59-
/* group */
60-
.group-details > div > h2,
66+
/* performer */
67+
.performer-name,
68+
.card-section,
69+
.name-data,
70+
.aliases-data,
6171

6272
/* gallery */
63-
h3.gallery-header,
73+
.gallery-header.no-studio,
6474
.TruncatedText.gallery-card__description,
6575

76+
6677
/* studio */
67-
.studio-details .logo,
68-
.studio-details > div > h2,
69-
.studio-card__details,
78+
.studio-name,
79+
.studio-overlay a,
80+
.studio-logo,
7081
.studio-parent-studios,
7182

83+
/* group */
84+
.group-details > div > h2,
85+
86+
/* image */
87+
h3.image-header,
88+
.Lightbox-carousel:hover,
89+
.TruncatedText.image-card__description,
90+
7291
/* tag */
73-
.logo-container > .logo,
74-
.logo-container > h2,
7592
.TruncatedText.tag-description,
76-
.tag-parent-tags
93+
.tag-item.tag-link.badge.badge-secondary,
94+
.tag-name
7795

7896
{
7997
filter: blur(2px);
8098
}
8199

100+
82101
/* === UNBLUR ON HOVER === */
83102

84103
/* common */
85-
.thumbnail-section:hover *,
86-
.card:hover .card-section-title,
104+
.detail-item-value:hover,
105+
.scene-cover:hover,
106+
107+
.card-section-title:hover,
108+
.TruncatedText.tag-description:hover,
109+
.detail-item-value.description:hover,
110+
.TruncatedText:hover,
87111

88112
/* scene */
89-
.card:hover .scene-studio-overlay,
90-
.video-js:hover .vjs-poster,
91-
video:hover,
92-
.scene-header:hover > h3,
93-
div:hover > .scene-header,
94-
.studio-logo:hover,
95-
.scene-cover:hover,
96-
.image-thumbnail:hover,
113+
.scene-player-container:hover,
97114
.scene-card-preview:hover,
98-
.scrubber-item:hover,
99-
.scene-image:hover,
115+
.queue-scene-details:hover,
116+
.scene-card:hover img,
100117
.TruncatedText.scene-card__description:hover,
118+
.scene-player-container:hover,
119+
.scene-header:hover > h3,
120+
div:hover > .scene-header,
121+
.wall-item-media:hover,
122+
.marker-wall:hover,
123+
.wall-item.show-title:hover,
101124

102125
/* image */
103-
.image-image:hover,
126+
.detail-header-image:hover,
104127
div:hover > .image-header,
105-
.gallery-image:hover,
128+
.image-card:hover img,
129+
.react-photo-gallery--gallery img:hover,
130+
.image-thumbnail:hover,
131+
.TruncatedText.image-card__description:hover,
132+
.wall-item:hover img,
133+
106134

107135
/* group */
108-
.group-images:hover,
109-
.group-details > div > h2:hover,
136+
.group-card:hover img,
110137

111138
/* gallery */
112-
div:hover > .gallery-header,
113-
table > tbody > tr > td:hover > a > img.w-100,
139+
.gallery-header.no-studio,
140+
.gallery-card:hover img,
141+
.gallery-cover:hover img,
142+
.gallery-image:hover,
143+
.gallery-card-image:hover,
114144
.TruncatedText.gallery-card__description:hover,
145+
.GalleryWallCard.GalleryWallCard-portrait:hover,
146+
.GalleryWallCard.GalleryWallCard-landscape:hover,
115147

116148
/* performer */
117-
img.performer:hover,
149+
.performer-card-image:hover,
150+
.performer-name:hover,
151+
.card-section:hover,
152+
.name-data:hover,
153+
.aliases-data:hover,
154+
.performer-card img:hover,
118155

119156
/* studio */
120-
.studio-details .logo:hover,
121-
.studio-details:hover > div > h2,
122-
.studio-card__details:hover,
157+
.studio-name:hover,
158+
.studio-overlay:hover a,
159+
.studio-card:hover img,
123160
.studio-parent-studios:hover,
161+
.studio-logo:hover,
124162

125163

126164
/* tag */
127-
.logo-container > .logo:hover,
128-
.logo-container:hover > h2,
129-
.TruncatedText.tag-description:hover,
130-
.tag-parent-tags:hover
131-
165+
.tag-card:hover img,
166+
.tag-item.tag-link.badge.badge-secondary:hover,
167+
.tag-name:hover
132168
{
133-
filter: blur(0px);
169+
filter: blur(0);
170+
transition: filter 0.25s ease;
134171
}
172+
173+
/*Credit: fl0w#9497 */

0 commit comments

Comments
 (0)