We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 26ea594 commit 066f79cCopy full SHA for 066f79c
UserScriptUserCount.js
@@ -42,6 +42,7 @@ class UserScriptUserCount {
42
const $link = this.$( $scriptLinks[ i ] );
43
const href = $link.attr( 'href' );
44
const scriptTitle = decodeURIComponent( href.replace( '/wiki/', '' ) );
45
+ // serial instead of parallel to follow API etiquette
46
const count = await this.getUserCount( scriptTitle );
47
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>`;
48
$link.after( countHtml );
0 commit comments