2022-05-04 23:09:46 +00:00
|
|
|
{% extends "settings.html" %}
|
|
|
|
|
2022-08-13 08:02:33 +00:00
|
|
|
{% block pagetitle %}Content Settings - {{SITE_NAME}}{% endblock %}
|
2022-05-04 23:09:46 +00:00
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
|
|
|
|
<div class="col col-lg-8">
|
|
|
|
|
|
|
|
<div class="settings">
|
|
|
|
|
2022-10-29 00:52:11 +00:00
|
|
|
<h5 name="referral">Poor Mode</h5>
|
2022-06-27 02:14:53 +00:00
|
|
|
|
|
|
|
<div class="settings-section rounded">
|
|
|
|
<div class="d-lg-flex border-bottom">
|
|
|
|
<div class="title w-lg-25">
|
2022-10-25 16:07:40 +00:00
|
|
|
<label for="poor">Poor Mode</label>
|
2022-06-27 02:14:53 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="body w-lg-100">
|
|
|
|
|
|
|
|
<div class="custom-control custom-switch">
|
2022-11-03 19:08:22 +00:00
|
|
|
<input autocomplete="off" type="checkbox" class="custom-control-input" id="poor" name="poor"{% if v.poor %} checked{% endif %} onchange="postToastSwitch(this,'/settings/profile?poor='+document.getElementById('poor').checked);">
|
2022-10-25 16:07:40 +00:00
|
|
|
<label class="custom-control-label" for="poor"></label>
|
2022-06-27 02:14:53 +00:00
|
|
|
</div>
|
|
|
|
|
2022-10-25 18:20:43 +00:00
|
|
|
<span class="text-small text-muted">Makes the site faster for low-end devices:</span>
|
|
|
|
|
|
|
|
<ul>
|
|
|
|
<li><small>Disables the effects of cosmetic awards.</small></li>
|
|
|
|
<li><small>Hides signatures.</small></li>
|
|
|
|
<li><small>Makes emoji search only start when you press Enter.</small></li>
|
|
|
|
<li><small>Disables UI animations.</small></li>
|
|
|
|
</ul>
|
2022-06-27 02:14:53 +00:00
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
2022-10-29 00:52:11 +00:00
|
|
|
<h5 name="referral">Frontpage Size</h5>
|
2022-05-04 23:09:46 +00:00
|
|
|
|
|
|
|
<div class="settings-section rounded">
|
|
|
|
<div class="d-lg-flex border-bottom">
|
|
|
|
<div class="title w-lg-25">
|
|
|
|
<label for="frontsize">Frontpage Size</label>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="body w-lg-100">
|
|
|
|
<p>Change how many posts appear on every page.</p>
|
|
|
|
<div class="input-group mb2">
|
2022-11-03 19:08:22 +00:00
|
|
|
<select autocomplete="off" id='frontsize' class="form-control" form="profile-settings" name="frontsize" onchange="postToastSwitch(this,'/settings/profile?frontsize='+document.getElementById('frontsize').value)">
|
2022-05-04 23:09:46 +00:00
|
|
|
{% for entry in [15, 25, 50, 100] %}
|
|
|
|
<option value="{{entry}}"{{' selected' if v.frontsize==entry}}>{{entry}}</option>
|
|
|
|
{% endfor %}
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
2022-10-29 00:52:11 +00:00
|
|
|
<h5 name="referral">Default Sorting and Time Filter</h5>
|
2022-05-04 23:09:46 +00:00
|
|
|
|
|
|
|
<div class="settings-section rounded">
|
|
|
|
|
|
|
|
<div class="d-lg-flex border-bottom">
|
|
|
|
<div class="title w-lg-25">
|
|
|
|
<label for="defaultsortingcomments">Default Sorting for Comments</label>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="body w-lg-100">
|
|
|
|
<p>Change the default sorting for comments.</p>
|
|
|
|
<div class="input-group mb2">
|
2022-11-03 19:08:22 +00:00
|
|
|
<select autocomplete="off" id='defaultsortingcomments' class="form-control" form="profile-settings" name="defaultsortingcomments" onchange="postToastSwitch(this,'/settings/profile?defaultsortingcomments='+document.getElementById('defaultsortingcomments').value)">
|
2022-10-11 16:41:09 +00:00
|
|
|
{% for entry in ["new", "old", "top", "hot", "bottom", "controversial"] %}
|
2022-05-04 23:09:46 +00:00
|
|
|
<option value="{{entry}}"{{' selected' if v.defaultsortingcomments==entry}}>{{entry}}</option>
|
|
|
|
{% endfor %}
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="d-lg-flex border-bottom">
|
|
|
|
<div class="title w-lg-25">
|
|
|
|
<label for="defaultsorting">Default Sorting for Posts</label>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="body w-lg-100">
|
|
|
|
<p>Change the default sorting for posts.</p>
|
|
|
|
<div class="input-group mb2">
|
2022-11-03 19:08:22 +00:00
|
|
|
<select autocomplete="off" id='defaultsorting' class="form-control" form="profile-settings" name="defaultsorting" onchange="postToastSwitch(this,'/settings/profile?defaultsorting='+document.getElementById('defaultsorting').value)">
|
2022-07-13 17:32:31 +00:00
|
|
|
{% for entry in ["hot", "bump", "new", "old", "top", "bottom", "controversial", "comments"] %}
|
2022-05-04 23:09:46 +00:00
|
|
|
<option value="{{entry}}"{{' selected' if v.defaultsorting==entry}}>{{entry}}</option>
|
|
|
|
{% endfor %}
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="d-lg-flex border-bottom">
|
|
|
|
<div class="title w-lg-25">
|
|
|
|
<label for="defaulttime">Default Time Filter for Posts</label>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="body w-lg-100">
|
|
|
|
<p>Change the default time filter for posts.</p>
|
|
|
|
<div class="input-group mb2">
|
2022-11-03 19:08:22 +00:00
|
|
|
<select autocomplete="off" id='defaulttime' class="form-control" form="profile-settings" name="defaulttime" onchange="postToastSwitch(this,'/settings/profile?defaulttime='+document.getElementById('defaulttime').value)">
|
2022-05-04 23:09:46 +00:00
|
|
|
{% for entry in ["hour", "day", "week", "month", "year", "all"] %}
|
|
|
|
<option value="{{entry}}"{{' selected' if v.defaulttime==entry}}>{{entry}}</option>
|
|
|
|
{% endfor %}
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
2022-10-29 00:52:11 +00:00
|
|
|
<h5>Tab Behaviour</h5>
|
2022-05-04 23:09:46 +00:00
|
|
|
|
|
|
|
<div class="settings-section rounded">
|
|
|
|
|
|
|
|
<div class="d-lg-flex border-bottom">
|
|
|
|
|
|
|
|
<div class="title w-lg-25">
|
|
|
|
<label for="newtab">Open Internal Links In New Tabs</label>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="body w-lg-100">
|
|
|
|
|
|
|
|
<div class="custom-control custom-switch">
|
2022-11-03 19:08:22 +00:00
|
|
|
<input autocomplete="off" type="checkbox" class="custom-control-input" id="newtab" name="newtab"{% if v.newtab %} checked{% endif %} onchange="postToastSwitch(this,'/settings/profile?newtab='+document.getElementById('newtab').checked);">
|
2022-05-04 23:09:46 +00:00
|
|
|
<label class="custom-control-label" for="newtab"></label>
|
|
|
|
</div>
|
|
|
|
|
2022-09-25 04:45:22 +00:00
|
|
|
<span class="text-small text-muted">Enable if you would like to automatically open links to other pages on the site in new tabs.</span>
|
2022-05-04 23:09:46 +00:00
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="d-lg-flex border-bottom">
|
|
|
|
|
|
|
|
<div class="title w-lg-25">
|
|
|
|
<label for="newtabexternal">Open External Links In New Tabs</label>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="body w-lg-100">
|
|
|
|
|
|
|
|
<div class="custom-control custom-switch">
|
2022-11-03 19:08:22 +00:00
|
|
|
<input autocomplete="off" type="checkbox" class="custom-control-input" id="newtabexternal" name="newtabexternal"{% if v.newtabexternal %} checked{% endif %} onchange="postToastSwitch(this,'/settings/profile?newtabexternal='+document.getElementById('newtabexternal').checked);">
|
2022-05-04 23:09:46 +00:00
|
|
|
<label class="custom-control-label" for="newtabexternal"></label>
|
|
|
|
</div>
|
|
|
|
|
2022-06-27 02:35:40 +00:00
|
|
|
<span class="text-small text-muted">Enable if you would like to automatically open links to other sites in new tabs.</span>
|
2022-05-04 23:09:46 +00:00
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
2022-10-29 00:52:11 +00:00
|
|
|
<h5>Twitter Links</h5>
|
2022-05-04 23:09:46 +00:00
|
|
|
|
|
|
|
<div class="settings-section rounded">
|
|
|
|
|
|
|
|
<div class="d-lg-flex border-bottom">
|
|
|
|
|
|
|
|
<div class="title w-lg-25">
|
|
|
|
<label for="nitter">Use Nitter</label>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="body w-lg-100">
|
|
|
|
|
|
|
|
<div class="custom-control custom-switch">
|
2022-11-03 19:08:22 +00:00
|
|
|
<input autocomplete="off" type="checkbox" class="custom-control-input" id="nitter" name="nitter"{% if v.nitter %} checked{% endif %} onchange="postToastSwitch(this,'/settings/profile?nitter='+document.getElementById('nitter').checked);">
|
2022-05-04 23:09:46 +00:00
|
|
|
<label class="custom-control-label" for="nitter"></label>
|
|
|
|
</div>
|
|
|
|
|
2022-09-29 05:36:10 +00:00
|
|
|
<span class="text-small text-muted">Enable if you would like to automatically convert twitter.com links to nitter.lacontrevoie.fr links.</span>
|
2022-05-04 23:09:46 +00:00
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
2022-10-29 00:52:11 +00:00
|
|
|
<h5>Instagram Links</h5>
|
2022-08-15 17:45:43 +00:00
|
|
|
|
|
|
|
<div class="settings-section rounded">
|
|
|
|
|
|
|
|
<div class="d-lg-flex border-bottom">
|
|
|
|
|
|
|
|
<div class="title w-lg-25">
|
|
|
|
<label for="imginn">Use Imginn</label>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="body w-lg-100">
|
|
|
|
|
|
|
|
<div class="custom-control custom-switch">
|
2022-11-03 19:08:22 +00:00
|
|
|
<input autocomplete="off" type="checkbox" class="custom-control-input" id="imginn" name="imginn"{% if v.imginn %} checked{% endif %} onchange="postToastSwitch(this,'/settings/profile?imginn='+document.getElementById('imginn').checked);">
|
2022-08-15 17:45:43 +00:00
|
|
|
<label class="custom-control-label" for="imginn"></label>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<span class="text-small text-muted">Enable if you would like to automatically convert instagram.com links to imginn.com links.</span>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
2022-10-29 00:52:11 +00:00
|
|
|
<h5>Reddit Links</h5>
|
2022-05-04 23:09:46 +00:00
|
|
|
|
|
|
|
<div class="settings-section rounded">
|
|
|
|
|
|
|
|
<div class="d-lg-flex border-bottom">
|
|
|
|
<div class="title w-lg-25">
|
|
|
|
<label for="reddit">Reddit Domain</label>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="body w-lg-100">
|
|
|
|
<p>Change the domain you would like to view reddit posts in.</p>
|
|
|
|
<div class="input-group mb2">
|
2022-11-03 19:08:22 +00:00
|
|
|
<select autocomplete="off" id='reddit' class="form-control" form="profile-settings" name="reddit" onchange="postToastSwitch(this,'/settings/profile?reddit='+document.getElementById('reddit').value)">
|
2022-05-04 23:09:46 +00:00
|
|
|
{% for entry in ['old.reddit.com', 'reddit.com', 'i.reddit.com', 'unddit.com', 'teddit.net', 'libredd.it'] %}
|
|
|
|
<option value="{{entry}}"{{' selected' if v.reddit==entry}}>{{entry}}</option>
|
|
|
|
{% endfor %}
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="d-lg-flex border-bottom">
|
|
|
|
|
|
|
|
<div class="title w-lg-25">
|
|
|
|
<label for="controversial">Sort by Controversial</label>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="body w-lg-100">
|
|
|
|
|
|
|
|
<div class="custom-control custom-switch">
|
2022-11-03 19:08:22 +00:00
|
|
|
<input autocomplete="off" type="checkbox" class="custom-control-input" id="controversial" name="controversial"{% if v.controversial %} checked{% endif %} onchange="postToastSwitch(this,'/settings/profile?controversial='+document.getElementById('controversial').checked);">
|
2022-05-04 23:09:46 +00:00
|
|
|
<label class="custom-control-label" for="controversial"></label>
|
|
|
|
</div>
|
|
|
|
|
2022-06-27 02:35:40 +00:00
|
|
|
<span class="text-small text-muted">Enable if you would like to automatically sort reddit.com links by controversial.</span>
|
2022-05-04 23:09:46 +00:00
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2022-10-29 00:52:11 +00:00
|
|
|
<h5>Content Filters</h5>
|
2022-05-04 23:09:46 +00:00
|
|
|
|
|
|
|
<div class="settings-section rounded">
|
|
|
|
<div class="d-lg-flex border-bottom">
|
|
|
|
<div class="title w-lg-25">
|
|
|
|
<label for="sigs_disabled">Disable signatures</label>
|
|
|
|
</div>
|
|
|
|
<div class="body w-lg-100">
|
|
|
|
<div class="custom-control custom-switch">
|
2022-11-03 19:08:22 +00:00
|
|
|
<input autocomplete="off" type="checkbox" class="custom-control-input" id="sigs_disabled" name="sigs_disabled"{% if v.sigs_disabled %} checked{% endif %} onchange="postToastSwitch(this,'/settings/profile?sigs_disabled='+document.getElementById('sigs_disabled').checked);">
|
2022-05-04 23:09:46 +00:00
|
|
|
<label class="custom-control-label" for="sigs_disabled"></label>
|
|
|
|
</div>
|
2022-06-27 02:35:40 +00:00
|
|
|
<span class="text-small text-muted">Hide user signatures.</span>
|
2022-05-04 23:09:46 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="d-lg-flex border-bottom">
|
|
|
|
<div class="title w-lg-25">
|
2022-11-03 22:59:18 +00:00
|
|
|
<label for="over18">Disable +18 Warnings</label>
|
2022-05-04 23:09:46 +00:00
|
|
|
</div>
|
|
|
|
<div class="body w-lg-100">
|
|
|
|
<div class="custom-control custom-switch">
|
2022-11-03 19:08:22 +00:00
|
|
|
<input autocomplete="off" type="checkbox" class="custom-control-input" id="over18" name="over18"{% if v.over_18 %} checked{% endif %} onchange="postToastSwitch(this,'/settings/profile?over18='+document.getElementById('over18').checked);">
|
2022-05-04 23:09:46 +00:00
|
|
|
<label class="custom-control-label" for="over18"></label>
|
|
|
|
</div>
|
2022-06-27 02:35:40 +00:00
|
|
|
<span class="text-small text-muted">Enable if you would like to not get a warning before viewing +18 content.</span>
|
2022-05-04 23:09:46 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="d-lg-flex border-bottom">
|
|
|
|
<div class="title w-lg-25">
|
|
|
|
<label for="slurreplacer">Slur Replacer</label>
|
|
|
|
</div>
|
|
|
|
<div class="body w-lg-100">
|
|
|
|
<div class="custom-control custom-switch">
|
2022-11-03 19:08:22 +00:00
|
|
|
<input autocomplete="off" type="checkbox" class="custom-control-input" id="slurreplacer" name="slurreplacer"{% if v.slurreplacer %} checked{% endif %} onchange="postToastSwitch(this,'/settings/profile?slurreplacer='+document.getElementById('slurreplacer').checked);">
|
2022-05-04 23:09:46 +00:00
|
|
|
<label class="custom-control-label" for="slurreplacer"></label>
|
|
|
|
</div>
|
2022-06-27 02:35:40 +00:00
|
|
|
<span class="text-small text-muted">Enable if you would like to automatically replace slurs.</span>
|
2022-05-04 23:09:46 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2022-11-04 13:43:59 +00:00
|
|
|
{% if SITE_NAME == 'rDrama' %}
|
2022-05-04 23:09:46 +00:00
|
|
|
<div class="d-lg-flex border-bottom">
|
2022-11-03 22:59:18 +00:00
|
|
|
<div class="title w-lg-25">
|
|
|
|
<label for="profanityreplacer">Profanity Replacer</label>
|
|
|
|
</div>
|
|
|
|
<div class="body w-lg-100">
|
|
|
|
<div class="custom-control custom-switch">
|
2022-11-03 23:20:06 +00:00
|
|
|
<input autocomplete="off" type="checkbox" class="custom-control-input" id="profanityreplacer" name="profanityreplacer"{% if v.profanityreplacer %} checked{% endif %} onchange="postToastSwitch(this,'/settings/profile?profanityreplacer='+document.getElementById('profanityreplacer').checked);">
|
2022-11-03 22:59:18 +00:00
|
|
|
<label class="custom-control-label" for="profanityreplacer"></label>
|
|
|
|
</div>
|
|
|
|
<span class="text-small text-muted">Enable if you would like to automatically replace profanities.</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-11-04 13:43:59 +00:00
|
|
|
{% endif %}
|
2022-11-03 22:59:18 +00:00
|
|
|
<div class="d-lg-flex border-bottom">
|
2022-05-04 23:09:46 +00:00
|
|
|
<div class="title w-lg-25">
|
|
|
|
<label for="hidevotedon">Hide Posts Voted On</label>
|
|
|
|
</div>
|
|
|
|
<div class="body w-lg-100">
|
|
|
|
<div class="custom-control custom-switch">
|
2022-11-03 19:08:22 +00:00
|
|
|
<input autocomplete="off" type="checkbox" class="custom-control-input" id="hidevotedon" name="hidevotedon"{% if v.hidevotedon %} checked{% endif %} onchange="postToastSwitch(this,'/settings/profile?hidevotedon='+document.getElementById('hidevotedon').checked);">
|
2022-05-04 23:09:46 +00:00
|
|
|
<label class="custom-control-label" for="hidevotedon"></label>
|
|
|
|
</div>
|
2022-06-27 02:35:40 +00:00
|
|
|
<span class="text-small text-muted">Enable if you would like to automatically hide posts you have voted on from your frontpage.</span>
|
2022-05-04 23:09:46 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="d-lg-flex">
|
|
|
|
<div class="title w-lg-25">
|
|
|
|
<label for="filters-text">Custom Filters</label>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="body w-lg-100">
|
|
|
|
<form id="custom-filter" action="/settings/filters" method="post">
|
|
|
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
|
|
|
<small>Hides matching posts from the frontpage and collapses matching comments.</small>
|
2022-05-25 21:55:07 +00:00
|
|
|
<textarea autocomplete="off" class="form-control rounded" id="filters-text" aria-label="With textarea"
|
|
|
|
placeholder="Add your own custom content filters."
|
|
|
|
rows="3" name="filters" form="custom-filter" maxlength="1000">{% if v.custom_filter_list %}{{v.custom_filter_list}}{% endif %}</textarea>
|
2022-05-04 23:09:46 +00:00
|
|
|
<div class="d-flex">
|
|
|
|
<small>Use a new line for each filter entry. Limit of 1000 characters.</small>
|
2022-06-24 02:53:31 +00:00
|
|
|
<input autocomplete="off" class="btn btn-primary ml-auto" id="bioSave" type="submit" onclick="disable(this)" value="Save Changes">
|
2022-05-04 23:09:46 +00:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|