Skip to content

Commit c962411

Browse files
authored
UI tweaks for script page and doc (#2072)
* Few more clarifications and tweaks to antifeature UI * Show on everyone's page to encourage usage and understanding for moderation requests. * Reversed array to match key spec * Reversed linkage... should help with SEO/comprehension a little. Post #2071 Auto-merge
1 parent ae438be commit c962411

3 files changed

Lines changed: 14 additions & 11 deletions

File tree

controllers/script.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ var getScriptPageTasks = function (aOptions) {
192192
};
193193
});
194194

195-
aOptions.script.antifeatures = Object.values(types);
195+
aOptions.script.antifeatures = Object.values(types).reverse();
196196
}
197197

198198
// Show collaborators of the script

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ The `@downloadURL` UserScript metadata block key is not currently required but h
249249

250250
### Q: What is antifeature?
251251

252-
A: Adopted and vetted from another site, this UserScript metadata block key indicates what types of Author beneficial Code has been included with the script. This allows any visitor to make a more informed decision before installation.
252+
A: Adopted and vetted from another site, this UserScript metadata block key indicates what types of Author indicated beneficial Code has been included with the script. This allows any visitor to make a more informed decision before installation.
253253

254254
Non-localized usage:
255255
``` js
@@ -270,46 +270,46 @@ Localized usage:
270270

271271
The following key type(s) are currently supported:
272272

273-
#### antifeature ads
273+
#### ads antifeature
274274

275275
``` js
276276
// @antifeature ads This script contains too many ads.
277277
```
278278

279-
#### antifeature membership
279+
#### membership antifeature
280280

281281
``` js
282282
// @antifeature membership This script requires an account for full functionality.
283283
```
284284

285-
#### antifeature miner
285+
#### miner antifeature
286286

287287
``` js
288288
// @antifeature miner This script uses a lot of electricity on your behalf.
289289
```
290290

291-
#### antifeature referral-link
291+
#### referral-link antifeature
292292

293293
``` js
294294
// @antifeature referral-link This script makes money for the Author.
295295
```
296296

297297

298-
#### antifeature tracking
298+
#### tracking antifeature
299299

300300
``` js
301301
// @antifeature tracking This script contains a tracking of your activity.
302302
```
303303

304304
The following key type(s) are currently __not__ supported:
305305

306-
#### antifeature payment
306+
#### payment antifeature
307307

308308
``` js
309-
// @antifeature payment This script utilizes additional proprietary upstream software and access.
309+
// @antifeature payment This script utilizes additional monetary proprietary upstream software and access.
310310
```
311311

312-
If any of these keys are present then additional consideration should be utilized for moderation requests. If any key is absent and a script is found to contain Code relevant to these types please flag the script for moderation inspection.
312+
If any of these keys are present then additional consideration should be utilized for moderation requests. If any key is absent and a script is found to contain Code relevant to these types please flag the script for moderation inspection with specifics.
313313

314314

315315
### Q: Does OpenUserJS.org have script synchronization from a version control site?

views/pages/scriptPage.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,11 @@
4545
{{#script.copyrights}}<p><i class="fa fa-fw fa-copyright"></i> <b>Copyright:</b> {{name}}</p>{{/script.copyrights}}
4646
{{#script.licenseConflict}}<p><i class="fa fa-fw fa-legal"></i> <b>License:</b> {{#script.licenseParadox}}<s>{{/script.licenseParadox}}<a rel="external noreferrer noopener nofollow ugc license" referrerpolicy="same-origin" href="https://spdx.org/licenses/MIT.html">MIT</a>; <a rel="external noreferrer noopener nofollow ugc license" referrerpolicy="same-origin" href="https://opensource.org/licenses/MIT">https://opensource.org/licenses/MIT</a>{{#script.licenseParadox}}</s>{{/script.licenseParadox}}</p>{{/script.licenseConflict}}
4747
{{#script.licenses}}<p><i class="fa fa-fw fa-balance-scale"></i> <b>License:</b> {{#name}}{{name}}{{/name}}{{^name}}<a rel="external noreferrer noopener nofollow ugc license" referrerpolicy="same-origin" href="https://spdx.org/licenses/{{spdx}}.html">{{spdx}}</a>{{#url}}; <a rel="external noreferrer noopener nofollow ugc license" referrerpolicy="same-origin" href="{{url}}">{{url}}</a>{{/url}}{{/name}}</p>{{/script.licenses}}
48+
{{^hasAntiFeature}}
49+
<p><i class="fa fa-fw fa-exclamation-triangle"></i> <b>Antifeature:</b> <a href="/about/Frequently-Asked-Questions#q-what-is-antifeature-"><i>not specified</i></a>
50+
{{/hasAntiFeature}}
4851
{{#hasAntiFeature}}
49-
<p><i class="fa fa-fw fa-exclamation-triangle"></i> <b>Antifeatures:</b> <span>{{#script.antifeatures}}<a href="/about/Frequently-Asked-Questions#antifeature-{{name}}" title="{{comment}}"> {{name}}</a>{{/script.antifeatures}}</span></p>
52+
<p><i class="fa fa-fw fa-exclamation-triangle"></i> <b>Antifeature:</b> <span>{{#script.antifeatures}}<a href="/about/Frequently-Asked-Questions#{{name}}-antifeature" title="{{comment}}"> {{name}}</a>{{/script.antifeatures}}</span></p>
5053
{{/hasAntiFeature}}
5154
{{#hasCollab}}
5255
<p><i class="fa fa-fw fa-user"></i> <b>Collaborator:</b> {{#script.collaborators}} <span class="label label-info"><a href="/users/{{{url}}}">{{text}}</a></span> {{/script.collaborators}}</p>

0 commit comments

Comments
 (0)