Skip to content

Commit c1d67df

Browse files
authored
Update unity-forum-fixer.js
1 parent 172483b commit c1d67df

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

unity-forum-fixer.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
// ==UserScript==
22
// @name UnityForumFixer
33
// @namespace https://unitycoder.com/
4-
// @version 0.421 (25.08.2024)
4+
// @version 0.5 (26.08.2024)
55
// @description Fixes For Unity Forums - https://github.com/unitycoder/UnityForumFixer
66
// @author unitycoder.com
7-
// @match https://discussions.unity.com/*
7+
// @match https://discussions.unity.com/latest
8+
// @match https://discussions.unity.com/t/*
89
// @grant none
910
// ==/UserScript==
1011

@@ -96,7 +97,7 @@ function AppendCustomCSS()
9697
.user-name { margin-bottom: 5px; font-weight: bold; text-align: center; font-size: 0.9em; color: var(--primary); text-decoration: none; display: block; word-wrap: break-word; white-space: normal; width: 100%; }
9798
.user-name:hover { color: rgb(82,132,189); text-decoration: underline; }
9899
.names.trigger-user-card {visibility: hidden !important;}
99-
.row { display: flex; }
100+
/* .row { display: flex; } */
100101
.topic-avatar { flex-basis: 10%; margin:0 !important; }
101102
.topic-body { flex-basis: 90%; } /* Ensure the main content adjusts accordingly */
102103
.topic-avatar {background-color: #d1d1d132;}
@@ -105,6 +106,8 @@ function AppendCustomCSS()
105106
.topic-body {padding: 0 !important;}
106107
.topic-map.--op {display: none !important;} /* hide view count under op post, could move it somewhere else later */
107108
109+
.user-signature {max-height:32px; overflow:hidden;padding: 8px 8px 4px 24px !important;} /* max size for signature */
110+
108111
.more-topics__container {display:none !important;} /* hide suggested topics at bottom */
109112
/* unity footer & content - could hide it.. but then unity is sad*/
110113
.unity-footer {font-size:0.7em !important; line-height: none !important; padding:0 !important; text-align:center !important;}
@@ -113,7 +116,7 @@ function AppendCustomCSS()
113116
.unity-footer-menu.unity-footer-menu-legal.processed { list-style: none; padding: 0; margin: 0; display: flex; justify-content: center; }
114117
.unity-footer-menu.unity-footer-menu-legal.processed li { margin: 0 10px; }
115118
116-
119+
117120
/* added custom fields */
118121
.original-poster-span {font: 13px 'Inter', sans-serif !important; color: rgb(150, 150, 150); } /* original poster below post title */
119122
.latest-poster-span { display: block; word-break: break-all; max-width: 100%; font: 14px 'Inter', sans-serif !important;} /* activity, latest poster */

0 commit comments

Comments
 (0)