GuruShots boost

Makes the boost buttons on GuruShots.com stand out more when a free boost is available.

이 스크립트를 설치하려면 Tampermonkey, Greasemonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey와 같은 확장 프로그램을 설치해야 합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Userscripts와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 유저 스크립트 관리자 확장 프로그램이 필요합니다.

(이미 유저 스크립트 관리자가 설치되어 있습니다. 설치를 진행합니다!)

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

(이미 유저 스타일 관리자가 설치되어 있습니다. 설치를 진행합니다!)

// ==UserScript==
// @name        GuruShots boost
// @namespace   urn://https://www.georgegillams.co.uk/greasemonkey/gurushots_boost
// @include     *gurushots.com/*
// @exclude     none
// @version     7
// @description:en	Makes the boost buttons on GuruShots.com stand out more when a free boost is available.
// @grant    		none
// @description Makes the boost buttons on GuruShots.com stand out more when a free boost is available.
// ==/UserScript==

function checkForFreeBoosts() {
  let availableBoostCount = 0;

  const allDivElements = document.getElementsByTagName('DIV');
  for (let i = 0; i < allDivElements.length; i += 1) {
    const element = allDivElements[i];
    if (element.className.includes('boost')) {
      if (
        !element.className.includes('boost--boosting') &&
        !element.className.includes('boost-state-locked') &&
        !element.className.includes('boost-state-used')
      ) {
        availableBoostCount += 1;
        element.style.backgroundColor = 'hotpink';
        element.style.color = 'white';
        element.style.borderColor = 'black';
        element.style.opacity = '1';
      }
    }
  }

  if (availableBoostCount < 1) {
    return;
  }

  for (let i = 0; i < allDivElements.length; i += 1) {
    const element = allDivElements[i];
    if (element.className === 'w-max') {
      element.style.backgroundColor = 'hotpink';
    }
  }
}

setInterval(checkForFreeBoosts, 5000);