Pcgamebenchmark Auto fill

Auto enters PC specs into fields

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name        Pcgamebenchmark Auto fill
// @namespace   Violentmonkey Scripts
// @match       *://*.pcgamebenchmark.com/*
// @grant       none
// @license MIT
// @version     1.0
// @author      SebMa
// @description Auto enters PC specs into fields
// ==/UserScript==

var gpu = 'Input your GPU'
var cpu = 'Input your CPU'
var ram = 'Input the amount of RAM here'


var buttons = document.getElementsByClassName("button secondary"); // finds all secondary buttons
var secondButton = buttons[1]; // Selects the second button // selects the correct button

document.querySelector('input[name="gpu-value"]').value = gpu; // selects gpu
document.querySelector('input[name="gpu"]').value = gpu; // selects gpu
console.log("selected gpu");


document.querySelector('input[name="cpu-value"]').value = cpu; // selects cpu
document.querySelector('input[name="cpu"]').value = cpu; // selects cpu
console.log("selected cpu");


document.getElementById('form-hardware-memory').value = ram; // selects memory
console.log("selected ram");

secondButton.click(); // clicks the test button, not working but doesnt really need to work