Skip to content

Commit 066f79c

Browse files
committed
UserScriptUserCount: add comment
1 parent 26ea594 commit 066f79c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

UserScriptUserCount.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ class UserScriptUserCount {
4242
const $link = this.$( $scriptLinks[ i ] );
4343
const href = $link.attr( 'href' );
4444
const scriptTitle = decodeURIComponent( href.replace( '/wiki/', '' ) );
45+
// serial instead of parallel to follow API etiquette
4546
const count = await this.getUserCount( scriptTitle );
4647
const countHtml = ` <span style="background-color: lightgray; padding: 2px 4px; border-radius: 4px; font-size: 90%; font-weight: normal !important;">${ count } ${ count === 1 ? 'user' : 'users' }</span>`;
4748
$link.after( countHtml );

0 commit comments

Comments
 (0)