title: How to auto confirm metamask transactions?
body: <p>I want to claim some NFTs, but everytime I click to claim. The Metamask shows up and ask me for confirmations. I don't want to click confirmation everytime. :(
  Below are some code I get from google and paste it on my console chrome ( extension// page), but it doesn't work. Do you have any suggestion?</p>
  <p>1,</p>
  <pre><code>if (confirm('Warning! This will auto approve ALL transactions until the page is refreshed, continue?')) {
  
      setInterval(function () {
  
          console.log(&quot;Scanning for new transactions...&quot;);
  
          var a = document.getElementsByTagName(&quot;div&quot;);
          var queue;
          for (var i = 0; i &lt; a.length; i++) {
              if (a[i].classList.contains(&quot;transaction-list-item--unconfirmed&quot;)) {
                  queue = a[i];
                  break;
              }
          }
  
          if (typeof queue !== 'undefined') {
              if (queue.getElementsByTagName(&quot;h3&quot;)[0].getElementsByTagName(&quot;div&quot;)[0].textContent == &quot;Unapproved&quot;) {
                  console.log(&quot;New transaction found&quot;);
                  queue.click();
              }
          }
  
          var c = document.getElementsByTagName(&quot;button&quot;);
          var btnConfirm;
          for (var i = 0; i &lt; c.length; i++) {
              if (c[i].textContent == &quot;Confirm&quot;) {
                  btnConfirm = c[i];
                  break;
              }
          }
          var btnReject;
          for (var j = 0; j &lt; c.length; j++) {
              if (c[j].textContent == &quot;Reject&quot;) {
                  btnReject = c[j];
                  break;
              }
          }
  
          if (typeof btnConfirm !== 'undefined' &amp;&amp; typeof btnReject !== 'undefined') {
              if (!btnConfirm.disabled) {
                  btnConfirm.click();
              }
              else {
                  btnReject.click();
              }
          }
  
      }, 1000)
  }
  </code></pre>
  <p>2,</p>
  <pre><code>var x = 111; var i = 0; while (i &lt;x){ i++; $(&quot;.btn-primary&quot;).click(); $(&quot;.confirm-page-container-navigation__imageflip&quot;).click(); }
  </code></pre>
  <p>3,</p>
  <pre><code>let note = document.getElementsByClassName('confirm-page-container-navigation__navtext'); let data = [].map.call(note, item =&gt; item.textContent); console.log(data[0]); let vl = data[0].split(&quot; &quot;).pop(); var x = vl-1; var i = 0; while (i &lt;x){ i++; $(&quot;.btn-primary&quot;).click(); $(&quot;.confirm-page-container-navigation__imageflip&quot;).click();}
  </code></pre>
  <p>4,</p>
  <pre><code>while (i &lt;111){
  i++;
  $(&quot;.btn-primary&quot;).click();
  $(&quot;.confirm-page-container-navigation__imageflip&quot;).click();
  }```
  </code></pre>
  <p>Thank you.</p>