Skip to content

Commit f053b63

Browse files
authored
Add option to disable confidential watermark (#107)
1 parent a7e7fec commit f053b63

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

src/EGO Forum Enhancement.ts

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// ==UserScript==
22
// @name EdgeGamers Forum Enhancement%RELEASE_TYPE%
33
// @namespace https://github.com/blankdvth/eGOScripts/blob/master/src/EGO%20Forum%20Enhancement.ts
4-
// @version 4.10.0
4+
// @version 4.10.1
55
// @description Add various enhancements & QOL additions to the EdgeGamers Forums that are beneficial for Leadership members.
66
// @author blank_dvth, Skle, MSWS, PixeL
77
// @match https://www.edgegamers.com/*
@@ -140,9 +140,15 @@ function setupForumsConfig() {
140140
type: "checkbox",
141141
default: true,
142142
},
143+
"show-confidential-watermark": {
144+
label: "Show confidential watermarks on LE forums",
145+
title: "When checked, all LE forums will have a red confidential watermark on them.",
146+
type: "checkbox",
147+
default: true,
148+
},
143149
"confidential-reports": {
144150
label: "Show confidential watermark on reports",
145-
title: "When checked, reports will have a red confidential watermark on them.",
151+
title: "When checked, reports will have a red confidential watermark on them. This only works if the above setting is enabled.",
146152
type: "checkbox",
147153
default: true,
148154
},
@@ -1934,8 +1940,10 @@ function handleProfileDropdown(event: Event) {
19341940
* @returns void
19351941
*/
19361942
function handleLeadership() {
1937-
generateRedText("5%");
1938-
generateRedText("80%");
1943+
if (GM_config.get("show-confidential-watermark")) {
1944+
generateRedText("5%");
1945+
generateRedText("80%");
1946+
}
19391947
}
19401948

19411949
/**

0 commit comments

Comments
 (0)