您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Auto enters PC specs into fields
// ==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