(function poll() {
  // Waits until an external function gives us the all clear that we can run (at /shared/main.js)
  if (typeof ynabToolKit !== 'undefined' && ynabToolKit.pageReady === true) {
    let compactHeight = 27;
    let slimHeight = 22;

    ynabToolKit.accountsRowHeight = (function () {
      return {
        invoke: function invoke() {
          // If the activity-transaction-link feature is not active we don't want to adjust the
          // record height because doing so causes scrolling to be jumpier than usual. If the
          // activity-transaction-link feature is active we do need to set the record height
          // because it uses the value to scroll the "selected transaction" to the top of the
          // register.
          if (ynabToolKit.options.activityTransactionLink) {
            let ynabGridContainer = ynabToolKit.shared.getEmberView($('.ynab-grid-container').attr('id'));
            let recordHeight = ynabGridContainer.get('recordHeight');

            // The second check is to minimize the times that recordHeight is changed because
            // each time it's changed YNAB reacts to it and that contributes to the scrolling
            // jumpyness.
            if (ynabToolKit.options.accountsRowHeight === '1' && recordHeight !== compactHeight) {
              ynabGridContainer.set('recordHeight', compactHeight);
            } else if (ynabToolKit.options.accountsRowHeight === '2' && recordHeight !== slimHeight) {
              ynabGridContainer.set('recordHeight', slimHeight);
            }
          }

          // Add our class so our CSS can take effect.
          $('.ynab-grid-body-row-top > .ynab-grid-cell').addClass('toolkit-ynab-grid-cell');
        },

        observe: function invoke(changedNodes) {
          if (changedNodes.has('ynab-grid-body')) {
            ynabToolKit.accountsRowHeight.invoke();
          }
        }
      };
    }()); // Keep feature functions contained within this object

    // Run once on page load.
    ynabToolKit.accountsRowHeight.invoke();
  } else {
    setTimeout(poll, 250);
  }
}());

@@ -912,16 +912,169 @@
 'id'));%0A
+%0A            // Will be undefined when YNAB is loaded going directly to the budget screen.%0A            if (typeof ynabGridContainer !== 'undefined') %7B%0A  
         
@@ -1148,16 +1148,18 @@
         
+  
 // The s
@@ -1232,16 +1232,18 @@
 because%0A
+  
         
@@ -1328,16 +1328,18 @@
 rolling%0A
+  
         
@@ -1360,32 +1360,34 @@
 ss.%0A            
+  
 if (ynabToolKit.
@@ -1463,32 +1463,34 @@
 %7B%0A              
+  
 ynabGridContaine
@@ -1539,16 +1539,18 @@
         
+ 
+ 
 %7D else i
@@ -1638,32 +1638,34 @@
 %7B%0A              
+  
 ynabGridContaine
@@ -1703,32 +1703,34 @@
 t);%0A            
+  
 %7D%0A          %7D%0A%0A 
@@ -1729,11 +1729,15 @@
     
+ 
+ 
 %7D%0A%0A
+  
     
@@ -1787,16 +1787,18 @@
 effect.%0A
+  
         
@@ -1882,16 +1882,28 @@
 cell');%0A
+          %7D%0A
         

Check that ynabGridContainer isn't undefined before referencing it