4chan-x/src/General/Settings/Advanced.html
2015-11-15 14:00:17 -08:00

133 lines
6.6 KiB
HTML

<fieldset>
<legend>Archiver</legend>
<div class="warning" data-feature="404 Redirect"><code>404 Redirect</code> is disabled.</div>
<select id="archive-board-select"></select>
<table id="archive-table">
<thead>
<th>Thread redirection</th>
<th>Post fetching</th>
<th>File redirection</th>
</thead>
<tbody></tbody>
</table>
</fieldset>
<fieldset>
<legend>Captcha Language</legend>
<div>Choose from <a href="https://developers.google.com/recaptcha/docs/language" target="_blank">list of language codes</a>. Leave blank to autoselect.</div>
<div><input name="captchaLanguage" class="field" spellcheck="false"></div>
</fieldset>
<fieldset>
<legend>Custom Board Navigation</legend>
<div><textarea name="boardnav" class="field" spellcheck="false"></textarea></div>
<span class="note">New lines will be converted into spaces.</span><br><br>
<div class="note">In the following examples for /g/, <code>g</code> can be changed to a different board ID (<code>a</code>, <code>b</code>, etc...), the current board (<code>current</code>), or the Twitter link (<code>@</code>).</div>
<div>Board link: <code>g</code></div>
<div>Archive link: <code>g-archive</code></div>
<div>Internal archive link: <code>g-expired</code></div>
<div>Title link: <code>g-title</code></div>
<div>Board link (Replace with title when on that board): <code>g-replace</code></div>
<div>Full text link: <code>g-full</code></div>
<div>Custom text link: <code>g-text:&quot;Install Gentoo&quot;</code></div>
<div>Index-only link: <code>g-index</code></div>
<div>Catalog-only link: <code>g-catalog</code></div>
<div>External link: <code>external-text:&quot;Google&quot;,&quot;http://www.google.com&quot;</code></div>
<div>Combinations are possible: <code>g-index-text:&quot;Technology Index&quot;</code></div>
<div>Full board list toggle: <code>toggle-all</code></div>
<br>
<div class="note">
<code>[ toggle-all ] [current-title] [g-title / a-title / jp-title] [x / wsg / h] [t-text:&quot;Piracy&quot;]</code><br>
will give you<br>
<code>[ + ] [Technology] [Technology / Anime & Manga / Otaku Culture] [x / wsg / h] [Piracy]</code><br>
if you are on /g/.
</div>
</fieldset>
<fieldset>
<legend>Time Formatting <span class="warning" data-feature="Time Formatting">is disabled.</span></legend>
<div><input name="time" class="field" spellcheck="false">: <span class="time-preview"></span></div>
<div>Supported <a href="http://man7.org/linux/man-pages/man1/date.1.html" target="_blank">format specifiers</a>:</div>
<div>Day: <code>%a</code>, <code>%A</code>, <code>%d</code>, <code>%e</code></div>
<div>Month: <code>%m</code>, <code>%b</code>, <code>%B</code></div>
<div>Year: <code>%y</code>, <code>%Y</code></div>
<div>Hour: <code>%k</code>, <code>%H</code>, <code>%l</code>, <code>%I</code>, <code>%p</code>, <code>%P</code></div>
<div>Minute: <code>%M</code></div>
<div>Second: <code>%S</code></div>
<div>Literal <code>%</code>: <code>%%</code></div>
</fieldset>
<fieldset>
<legend>Quote Backlinks formatting <span class="warning" data-feature="Quote Backlinks">is disabled.</span></legend>
<div><input name="backlink" class="field" spellcheck="false">: <span class="backlink-preview"></span></div>
</fieldset>
<fieldset>
<legend>File Info Formatting <span class="warning" data-feature="File Info Formatting">is disabled.</span></legend>
<div><input name="fileInfo" class="field" spellcheck="false">: <span class="file-info file-info-preview"></span></div>
<div>Link: <code>%l</code> (truncated), <code>%L</code> (untruncated), <code>%T</code> (4chan filename)</div>
<div>Filename: <code>%n</code> (truncated), <code>%N</code> (untruncated), <code>%t</code> (4chan filename)</div>
<div>Spoiler indicator: <code>%p</code></div>
<div>Size: <code>%B</code> (Bytes), <code>%K</code> (KB), <code>%M</code> (MB), <code>%s</code> (4chan default)</div>
<div>Resolution: <code>%r</code> (Displays &#039;PDF&#039; for PDF files)</div>
<div>Tag: <code>%g</code>
<div>Literal <code>%</code>: <code>%%</code></div>
</fieldset>
<fieldset>
<legend>Quick Reply Personas</legend>
<textarea class="personafield field" name="QR.personas" spellcheck="false"></textarea>
<p>
One item per line.<br>
Items will be added in the relevant input&#039;s auto-completion list.<br>
Password items will always be used, since there is no password input.<br>
Lines starting with a <code>#</code> will be ignored.
</p>
<ul>You can use these settings with each item, separate them with semicolons:
<li>Possible items are: <code>name</code>, <code>options</code> (or equivalently <code>email</code>), <code>subject</code> and <code>password</code>.</li>
<li>Wrap values of items with quotes, like this: <code>options:&quot;sage&quot;</code>.</li>
<li>Force values as defaults with the <code>always</code> keyword, for example: <code>options:&quot;sage&quot;;always</code>.</li>
<li>Select specific boards for an item, separated with commas, for example: <code>options:&quot;sage&quot;;boards:jp;always</code>.</li>
</ul>
</fieldset>
<fieldset>
<legend>Unread Favicon <span class="warning" data-feature="Unread Favicon">is disabled.</span></legend>
<select name="favicon">
<option value="ferongr">ferongr</option>
<option value="xat-">xat-</option>
<option value="4chanJS">4chanJS</option>
<option value="Mayhem">Mayhem</option>
<option value="Original">Original</option>
<option value="Metro">Metro</option>
</select>
<span class="favicon-preview">
<img src="data:image/gif;base64,R0lGODlhEAAQAPAAAAAAAAAAACH5BAEAAAAALAAAAAAQABAAAAIOhI%2Bpy%2B0Po5y02ouzPgUAOw%3D%3D">
<img src="data:image/gif;base64,R0lGODlhEAAQAPAAAAAAAAAAACH5BAEAAAAALAAAAAAQABAAAAIOhI%2Bpy%2B0Po5y02ouzPgUAOw%3D%3D">
<img src="data:image/gif;base64,R0lGODlhEAAQAPAAAAAAAAAAACH5BAEAAAAALAAAAAAQABAAAAIOhI%2Bpy%2B0Po5y02ouzPgUAOw%3D%3D">
<img src="data:image/gif;base64,R0lGODlhEAAQAPAAAAAAAAAAACH5BAEAAAAALAAAAAAQABAAAAIOhI%2Bpy%2B0Po5y02ouzPgUAOw%3D%3D">
</span>
</fieldset>
<fieldset>
<legend>Thread Updater <span class="warning" data-feature="Thread Updater">is disabled.</span></legend>
<div>
Interval: <input type="number" name="Interval" class="field" min="1"> seconds
</div>
</fieldset>
<fieldset>
<legend>Custom Cooldown Time</legend>
<div>
Seconds: <input type="number" name="customCooldown" class="field" min="0">
</div>
</fieldset>
<fieldset>
<legend>
<label><input type="checkbox" name="Custom CSS"> Custom CSS</label>
</legend>
<button id="apply-css">Apply CSS</button>
<textarea name="usercss" class="field" spellcheck="false"></textarea>
</fieldset>