minor changes

This commit is contained in:
2025-11-24 16:32:13 +01:00
parent 3c23aae864
commit 6d0cada610
14 changed files with 1059 additions and 491 deletions

View File

@@ -480,6 +480,127 @@
</form>
</section>
<!-- Sports scoring Section -->
<section class="settings-section">
<h2 class="section-title">🏷️ Sport-Post-Scoring</h2>
<p class="section-description">
Analysiert Beitragstexte nach Sport-Begriffen (z.B. Fußball, Volleyball) und weist einen Score zu.
Beiträge oberhalb des Schwellwerts würden später automatisch ausgeblendet aktuell wird nur markiert.
</p>
<form id="moderationSettingsForm">
<div class="form-group">
<label class="form-label">
<input type="checkbox" id="sportsScoringEnabled" class="form-checkbox">
<span>Scoring aktivieren</span>
</label>
<p class="form-help">
Nutze das heuristische Punktesystem, um offensichtliche Sport-/Spiel-Posts zu erkennen.
</p>
</div>
<div class="form-group">
<label for="sportsScoreThreshold" class="form-label">Schwellwert für Sport-Posts</label>
<input type="number" id="sportsScoreThreshold" class="form-input" min="0" max="50" step="0.5" value="5">
<p class="form-help">
Ab diesem Score kann der Post automatisch versteckt werden.
</p>
</div>
<div class="form-group">
<label class="form-label">
<input type="checkbox" id="sportsAutoHideEnabled" class="form-checkbox">
<span>Automatisch verstecken bei Überschreitung</span>
</label>
<p class="form-help">
Wenn aktiviert, blendet die Extension Posts mit Score ≥ Schwellwert automatisch aus (Feed & Suche).
</p>
</div>
<div class="form-group">
<label class="form-label">Gewichte (010)</label>
<div class="grid-weights">
<label class="form-field-inline">
<span>Ergebnis (1:0)</span>
<input type="number" id="sportWeightScoreline" class="form-input" min="0" max="10" step="0.5">
</label>
<label class="form-field-inline">
<span>Score-Emojis (+3⃣)</span>
<input type="number" id="sportWeightScoreEmoji" class="form-input" min="0" max="10" step="0.5">
</label>
<label class="form-field-inline">
<span>Sport-Emojis (⚽️)</span>
<input type="number" id="sportWeightSportEmoji" class="form-input" min="0" max="10" step="0.5">
</label>
<label class="form-field-inline">
<span>Verben (gewinnen)</span>
<input type="number" id="sportWeightSportVerb" class="form-input" min="0" max="10" step="0.5">
</label>
<label class="form-field-inline">
<span>Nomen (Liga, Tor)</span>
<input type="number" id="sportWeightSportNoun" class="form-input" min="0" max="10" step="0.5">
</label>
<label class="form-field-inline">
<span>Hashtags (#auswärtssieg)</span>
<input type="number" id="sportWeightHashtag" class="form-input" min="0" max="10" step="0.5">
</label>
<label class="form-field-inline">
<span>Team-Kürzel (FC…)</span>
<input type="number" id="sportWeightTeamToken" class="form-input" min="0" max="10" step="0.5">
</label>
<label class="form-field-inline">
<span>Wettbewerbe (Cup)</span>
<input type="number" id="sportWeightCompetition" class="form-input" min="0" max="10" step="0.5">
</label>
<label class="form-field-inline">
<span>Ergebnisbezug (Sieg)</span>
<input type="number" id="sportWeightCelebration" class="form-input" min="0" max="10" step="0.5">
</label>
<label class="form-field-inline">
<span>Ort (Auswärts)</span>
<input type="number" id="sportWeightLocation" class="form-input" min="0" max="10" step="0.5">
</label>
</div>
<p class="form-help">
Je höher das Gewicht, desto stärker zahlt der jeweilige Treffer auf den Sport-Score ein.
</p>
</div>
<div class="form-group">
<label class="form-label">Stichwort-Listen (kommagetrennt)</label>
<div class="grid-weights">
<label class="form-field-inline">
<span>Nomen</span>
<textarea id="sportTermsNouns" class="form-textarea" rows="2" placeholder="auswärtssieg, liga, tor ..."></textarea>
</label>
<label class="form-field-inline">
<span>Verben</span>
<textarea id="sportTermsVerbs" class="form-textarea" rows="2" placeholder="gewinnen, punkten ..."></textarea>
</label>
<label class="form-field-inline">
<span>Wettbewerbe</span>
<textarea id="sportTermsCompetitions" class="form-textarea" rows="2" placeholder="bundesliga, cup ..."></textarea>
</label>
<label class="form-field-inline">
<span>Ergebnisbezug</span>
<textarea id="sportTermsCelebrations" class="form-textarea" rows="2" placeholder="sieg, tabellenführung ..."></textarea>
</label>
<label class="form-field-inline">
<span>Orte</span>
<textarea id="sportTermsLocations" class="form-textarea" rows="2" placeholder="auswärts, stadion ..."></textarea>
</label>
<label class="form-field-inline">
<span>Negativliste</span>
<textarea id="sportTermsNegatives" class="form-textarea" rows="2" placeholder="rezept, politik ..."></textarea>
</label>
</div>
<p class="form-help">
Leere Felder nutzen die Standardliste. Negativliste senkt den Score bei Treffern.
</p>
</div>
</form>
</section>
<!-- Hidden posts / purge settings -->
<section class="settings-section">
<h2 class="section-title">Versteckte Beiträge bereinigen</h2>