aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorr <r@freesoftwareextremist.com>2020-09-03 06:26:32 +0000
committerr <r@freesoftwareextremist.com>2020-09-03 06:29:03 +0000
commit7a59d010f6d07bcfb074e60f1f06b002c4bf7b74 (patch)
treee39adf5e43b74a2c2c66e7e5b38592108b6545f3 /templates
parent28695fb8e6b299389347fc8c42f7dc3923b42f24 (diff)
downloadbloat-7a59d010f6d07bcfb074e60f1f06b002c4bf7b74.tar.gz
bloat-7a59d010f6d07bcfb074e60f1f06b002c4bf7b74.zip
Fix issues related to AntiDopamine mode
- Add AntiDopamine mode description - Update fluoride to support AntiDopamine mode
Diffstat (limited to 'templates')
-rw-r--r--templates/header.tmpl3
-rw-r--r--templates/settings.tmpl10
2 files changed, 8 insertions, 5 deletions
diff --git a/templates/header.tmpl b/templates/header.tmpl
index 8e67353..2d76f33 100644
--- a/templates/header.tmpl
+++ b/templates/header.tmpl
@@ -10,6 +10,9 @@
{{if .CSRFToken}}
<meta name="csrf_token" content="{{.CSRFToken}}">
{{end}}
+ {{if $.Ctx.AntiDopamineMode}}
+ <meta name="antidopamine_mode" content="{{$.Ctx.AntiDopamineMode}}">
+ {{end}}
{{if .AutoRefresh}}
<meta http-equiv="refresh" content="30">
{{end}}
diff --git a/templates/settings.tmpl b/templates/settings.tmpl
index ab5f03c..67386a4 100644
--- a/templates/settings.tmpl
+++ b/templates/settings.tmpl
@@ -38,13 +38,13 @@
<label for="fluoride-mode"> Enable <abbr title="Enable JavaScript based functionality, e.g., like/retweet without page reload and reply preview on thread page">fluoride mode</abbr> </label>
</div>
<div class="settings-form-field">
- <input id="dark-mode" name="dark_mode" type="checkbox" value="true" {{if .Settings.DarkMode}}checked{{end}}>
- <label for="dark-mode"> Use dark theme </label>
- </div>
- <div class="settings-form-field">
<input id="anti-dopamine-mode" name="anti_dopamine_mode" type="checkbox"
value="true" {{if .Settings.AntiDopamineMode}}checked{{end}}>
- <label for="anti-dopamine-mode"> Remove addictive social media features </label>
+ <label for="anti-dopamine-mode"> Enable <abbr title="Remove like/retweet/unread notification count and disable like/retweet/follow notifications">anti-dopamine mode</abbr> </label>
+ </div>
+ <div class="settings-form-field">
+ <input id="dark-mode" name="dark_mode" type="checkbox" value="true" {{if .Settings.DarkMode}}checked{{end}}>
+ <label for="dark-mode"> Use dark theme </label>
</div>
<button type="submit"> Save </button>
</form>