Completionator - Default Epic Games

Default values into the Completionator bulk import form, for weekly free Epic Games Store games.

Dovrai installare un'estensione come Tampermonkey, Greasemonkey o Violentmonkey per installare questo script.

You will need to install an extension such as Tampermonkey to install this script.

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Userscripts per installare questo script.

Dovrai installare un'estensione come ad esempio Tampermonkey per installare questo script.

Dovrai installare un gestore di script utente per installare questo script.

(Ho già un gestore di script utente, lasciamelo installare!)

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

(Ho già un gestore di stile utente, lasciamelo installare!)

// ==UserScript==
// @name         Completionator - Default Epic Games
// @namespace    https://github.com/theborg3of5/Userscripts/
// @version      1.2
// @description  Default values into the Completionator bulk import form, for weekly free Epic Games Store games.
// @author       Gavin Borg
// @match        https://*.completionator.com/Collection/BulkImport
// ==/UserScript==

document.querySelector("#ddlPlatform").value = 32; // Platform = PC / Windows
document.querySelector("#ddlPlatform").dispatchEvent(new Event("change")) // Trigger changed event so following fields populate appropriately
document.querySelector("#rdoDigital").click(); // Format = Digital, click instead of setting value so it makes other fields appear correctly
document.querySelector("#IsBacklog").checked = true; // Add imported games to my backlog = checked

// The above fields show and populate the format dropdown
window.setTimeout(function() {
    document.querySelector("#ddlDigitalFormatProvider").value = 1028; // Digital Format = Epic Games Store
}, 1000);