Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
NovemLinguae committed Mar 21, 2024
1 parent e71718b commit f4c286a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions UserHighlighterSimple.js
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,7 @@ class UserHighlighterSimple {
// List of hooks: https://doc.wikimedia.org/mediawiki-core/master/js/Hooks.html#

// Fire after wiki content is added to the DOM, such as when first loading a page, or when a gadget such as the XTools gadget loads.
// TODO: wikipage.content returns only the changed content in a $content parameter. Could process only that for better performance.
mw.hook('wikipage.content').add(async function() {
await mw.loader.using(['mediawiki.util', 'mediawiki.Uri', 'mediawiki.Title'], async function() {
let uhs = new UserHighlighterSimple($, mw, window);
Expand Down

0 comments on commit f4c286a

Please sign in to comment.