Content deleted Content added
looking good, just cleaning up now |
perf monitoring, layout changes, refactoring |
||
Line 17:
async execute() {
console.time("get usernames")
await this.getUsernames();
console.timeEnd("get usernames")
this.addCSS('user-role-indicator', 'font-size: smaller; display: inline; background:
▲ }
const $links = this.$( '#article a, #bodyContent a, #mw_contentholder a' );
console.time("linkloop")
$links.each( ( index, element ) => {
this.$link = this.$( element );
Line 39 ⟶ 44:
}
} );
console.timeEnd("linkloop")
}
Line 266 ⟶ 272:
this.addHoverIcon("🐣", "Less than 500 edits");
}
▲ this.addCSS('user-role-indicator', 'font-size: smaller; display: inline; background: gainsboro; padding: 0.1em; border-radius: 5px; border: 1px black solid; margin-left: 3px;')
}
}
|