Completionator - Default Epic Games

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

目前为 2021-02-07 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Completionator - Default Epic Games
  3. // @namespace https://github.com/theborg3of5/Userscripts/
  4. // @version 1.0
  5. // @description Default values into the Completionator bulk import form, for weekly free Epic Games Store games.
  6. // @author Gavin Borg
  7. // @match https://www.completionator.com/Collection/BulkImport
  8. // ==/UserScript==
  9.  
  10. document.querySelector("#ddlPlatform").value = 32; // Platform = PC / Windows
  11. document.querySelector("#ddlPlatform").dispatchEvent(new Event("change")) // Trigger changed event so following fields populate appropriately
  12. document.querySelector("#rdoDigital").click(); // Format = Digital, click instead of setting value so it makes other fields appear correctly
  13.  
  14. // The above fields show and populate the format dropdown
  15. window.setTimeout(function() {
  16. document.querySelector("#ddlDigitalFormatProvider").value = 1028; // Digital Format = Epic Games Store
  17. }, 2000);