diff --git a/modules/ext.thanks.mobilediff.js b/modules/ext.thanks.mobilediff.js
index dd9030fe..403329dc 100644
--- a/modules/ext.thanks.mobilediff.js
+++ b/modules/ext.thanks.mobilediff.js
@@ -37,43 +37,41 @@
* @param {string} name The username of the user who made the edit
* @param {string} rev The revision the user created
* @param {string} gender The gender of the user who made the edit
- * @return {html} The HTML of the button.
+ * @return {jQuery|null} The HTML of the button.
*/
function createThankLink( name, rev, gender ) {
- var $thankBtn,
- $thankImg = $( '' ).attr( {
- width: 25,
- height: 20,
- src: mw.config.get( 'wgExtensionAssetsPath' ) + '/Thanks/WhiteSmiley.png'
- } ).addClass( 'mw-mf-action-button-icon' );
+ var $thankImg = $( '' ).attr( {
+ width: 25,
+ height: 20,
+ src: mw.config.get( 'wgExtensionAssetsPath' ) + '/Thanks/WhiteSmiley.png'
+ } ).addClass( 'mw-mf-action-button-icon' );
// Don't make thank button for self
- if ( name !== mw.config.get( 'wgUserName' ) ) {
- // See if user has already been thanked for this edit
- if ( mw.config.get( 'wgThanksAlreadySent' ) ) {
- $thankBtn = $( '