Skip to content

Instantly share code, notes, and snippets.

@qFamouse
Created June 25, 2022 15:10
Show Gist options
  • Save qFamouse/24cc5ba66a0a31a0d9ba06e5feb2b8be to your computer and use it in GitHub Desktop.
Save qFamouse/24cc5ba66a0a31a0d9ba06e5feb2b8be to your computer and use it in GitHub Desktop.
Steam 3000 SUMMER SALE 2022

Steam 3000 SUMMER SALE 2022

This script is helpful for the quick completion of the 2022 summer sale event

Этот скрипт поможет Вам быстро пройти ивент летней распродажи 2022

Usage

EN
  1. Open store page
  2. Click on 'FREE FUN THIS WAY'
  3. Click on 'JUMP TO CURRENT CLUE'
  4. Click on 'GO FIND IT'
  5. Scroll down and click on 'UPCOMING'
  6. Open the JavaScript Console (Ctrl + Shift + J) and paste the script
  7. Wait until there is a game and click on 'Click Me'
  8. Repeat the previous steps until the event is completed
RU
  1. Откройте страницу магазина
  2. Нажмите на 'БЕСПЛАТНЫЕ РАЗВЛЕЧЕНИЯ - СЮДА'
  3. Нажмите на 'К ТЕКУЩЕЙ ПОДСКАЗКЕ'
  4. Нажмите на 'НА ПОИСКИ'
  5. Прокрутите страницу ниже и откройте вкладку 'скоро'
  6. Откройте консоль JavaScript (Ctrl + Shift + J) и вставьте туда скрипт
  7. Дождитесь окончания поиска игры и нажмите на 'Нажми меня'
  8. Повторяйте предыдущие шаги пока не выполните ивент

Preview

ezgif com-gif-maker

var gameList = document.getElementsByClassName('facetedbrowse_FacetedBrowseItems_NO-IP')[0];
var searching = true;
var gameIndexToView = 0;
var cartBtnText;
var timerId = setInterval(() => {
if (searching) {
console.log('Searching...')
gameList.lastChild.lastChild.click(); // View more button
let gameListLengthWithoutLastChild = gameList.childNodes.length - 1;
while (gameIndexToView < gameListLengthWithoutLastChild) {
let game = gameList.childNodes[gameIndexToView];
let priceBox = game.querySelector('[class^="salepreviewwidgets_StoreSalePriceBox_"]')
if (priceBox && priceBox.textContent === 'TH.4X') {
console.log(`Found! - ${gameIndexToView} index`)
game.scrollIntoView();
searching = false;
break;
}
gameIndexToView++
}
}
else {
clearInterval(timerId);
}
}, 700);
@m1ranzhik
Copy link

Большое тебе спасибо. Дай Бог здоровья тебе и твоей семье)

@Figarist
Copy link

+rep

@fewroni
Copy link

fewroni commented Jul 4, 2022

я не понимаю как ,у меня не выходит

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment