Completionator - Default Epic Games

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

当前为 2021-06-04 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==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);