Skip to content

Commit 46c281f

Browse files
committed
Merge pull request OpenUserJS#979 from Martii/Issue-970pointToDoc
Show a question or exclamation to DOC Auto-merge
2 parents b814131 + ed8fe6f commit 46c281f

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

views/includes/documents/Frequently-Asked-Questions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ Multiple forms exist for various purposes:
9595
* This is the preferred route and goes directly to the necessary items needed for updating. This route is currently unmanaged. If you want your update checks faster most of the time this is the route to choose.
9696
* [https://openuserjs.org/**install**/username/scriptname.meta.js][metaJSExample2]
9797
* This is the legacy route and indirectly goes to the necessary items needed for updating. This route is currently managed. If you want your script update checks to potentially not come during high traffic times this is the route to choose.
98-
* One of these is currently required when OpenUserJS is in lockdown mode. If any script points to an OUJS .user.js url it will be rejected. If it is absent it will be rejected. Occasionally a script and/or .user.js engine might put out a bugged version and in order to ensure minimal site disruption OUJS may optionally toggle into lockdown mode. Hopefully these instances will be few but there is existing precedence for this use case. Please see [About][oujsAbout] for current site status.
98+
* One of these is currently required when OpenUserJS is in lockdown mode. If any script points to an OUJS .user.js url it will not be served. If it is absent it will not be served. Occasionally a script and/or .user.js engine might put out a bugged version and in order to ensure minimal site disruption OUJS may optionally toggle into lockdown mode. Hopefully these instances will be few but there is existing precedence for this use case. Please see [About][oujsAbout] for current site status and your Author Tools panel on each of your scripts.
9999
* You must choose. But choose wisely, for as the true .meta.js will bring you life, a false one will take it from you.
100100
2. `.meta.json` - This is the modern [JSON][JSONHomepage] usage that outputs the information we collect from the metadata blocks.
101101
* [https://openuserjs.org/**meta**/username/scriptname.meta.json][metaJSONExample]

views/includes/scriptAuthorToolsPanel.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@
1515
<button class="btn btn-{{#lockdown.updateURLCheck}}info{{/lockdown.updateURLCheck}}{{^lockdown.updateURLCheck}}default{{/lockdown.updateURLCheck}}" id="updateurl-raw" data-clipboard-text="// @updateURL {{{script.scriptPermalinkMetaPageUrl}}}" title="Copy key and raw URL to clipboard"><i class="octicon octicon-clippy"></i> // @updateURL</button>
1616
</span>
1717
<input type="text" class="form-control" id="updateurl" value="{{{script.scriptPermalinkMetaPageUrl}}}" readonly="readonly">
18+
<span class="input-group-btn">
19+
<a class="btn btn-{{#lockdown.updateURLCheck}}info{{/lockdown.updateURLCheck}}{{^lockdown.updateURLCheck}}default{{/lockdown.updateURLCheck}}"
20+
title="How do I use this?"
21+
href="/about/Frequently-Asked-Questions#q-does-openuserjs-org-have-meta-">
22+
<i class="fa fa-{{#lockdown.updateURLCheck}}exclamation{{/lockdown.updateURLCheck}}{{^lockdown.updateURLCheck}}question{{/lockdown.updateURLCheck}}"></i>
23+
</a>
24+
</span>
1825
</div>
1926
</div>
2027
<h4>Installs per Version <small>effective <time title='Tue Sep 2 2014'>Sep '14</time></small></h4>

views/pages/newScriptPage.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ <h5 class="list-group-item-heading"><code>@name My Script</code></h5>
3131
<p class="list-group-item-text"><strong>Default non-localized is required.</strong> Last value is used.</p>
3232
</div>
3333
<div class="list-group-item">
34-
<h5 class="list-group-item-heading"><code>@updateURL https://openuserjs.org/meta/{{#authedUser}}{{authedUser.name}}{{/authedUser}}{{^authedUser}}username{{/authedUser}}/My%20Script.meta.js</code></h5>
34+
<h5 class="list-group-item-heading"><code>@updateURL https://openuserjs.org/meta/{{#authedUser}}{{authedUser.name}}{{/authedUser}}{{^authedUser}}username{{/authedUser}}/My_Script.meta.js</code></h5>
3535
<p class="list-group-item-text"><strong>Required in lockdown mode.</strong> See <a href="/about/Frequently-Asked-Questions#q-does-openuserjs-org-have-meta-">this FAQ item</a> for more. Last value is used.</p>
3636
</div>
3737
<div class="list-group-item">

0 commit comments

Comments
 (0)