Lichess auto confirm resign in bullet only

Automatically confirms resign in bullet only

// ==UserScript==
// @name         Lichess auto confirm resign in bullet only
// @namespace    http://github.com/flugsio
// @version      0.3
// @description  Automatically confirms resign in bullet only
// @author       flugsio
// @license      MIT
// @include        /\.lichess\.org\/\w{12}$/
// @grant unsafeWindow
// ==/UserScript==

$('.button.resign-confirm').on('click', function() {
  if ($('.setup span:contains("BULLET")').length > 0) {
    lichess.socket.send('resign');
  }
});