Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Here is my code, it seems to work as of now. I hope this will be usefull for you or others who see this.
So what does it do.
User needs to manually scroll page to the end to have all games in collection displayed on the current page.
The we paste this code in console. and as result .txt file downloaded with all liks leating to game page.

// Get all anchor elements with the class 'game_link'

var anchorElements = document.querySelectorAll('.game_link');

// Initialize a set to store unique href contents

var uniqueHrefContents = new Set();

// Iterate through each anchor element

anchorElements.forEach(function (anchorElement) {

    // Check if the element has the correct data-action attribute

    if (anchorElement.getAttribute('data-action') === 'game_grid') {

        // Get the href content

        var hrefContent = anchorElement.getAttribute('href');

        // Check if the href content does not contain "game_grid" and is not a duplicate

        if (hrefContent && !hrefContent.includes('game_grid') && !uniqueHrefContents.has(hrefContent)) {

            // Add the href content to the set

            uniqueHrefContents.add(hrefContent);

        }

    }

});

// Convert the set to an array and join the contents

var combinedHrefContents = Array.from(uniqueHrefContents).join('\n');

// Save the combined href contents to a file (e.g., using Blob and a link)

var blob = new Blob([combinedHrefContents], { type: 'text/plain' });

var a = document.createElement('a');

a.href = window.URL.createObjectURL(blob);

a.download = 'unique_href_contents.txt';

a.click();