Board Thread:JS Development/@comment-116899-20191203190744/@comment-27958705-20191203194451

the script needs some adjustments, mostly selectors and notify->bannernotification migration, in order to work on fandom. looks like something doable.


 * 1) change "mediawiki.notify" to "ext.BannerNotifications", then rewrite .notify calls to banners. simplest way would be: change "mw.notify(msg, {...})" to "new BannerNotification(msg).show".
 * 2) change classes: wikipedia's script uses different set of selectors, so button will not appear, watchlist entries will not be found, etc. so you need to change them. for instance: "form#mw-watchlist-form" i'd change to "form#mw-watchlist-resetbutton". you can use browser inspector to find what selectors you should use.