Greasy Fork

StratumsShop++

Stratums.io Shop++

目前为 2022-08-09 提交的版本。查看 最新版本

// ==UserScript==
// @name         StratumsShop++
// @version      0.1
// @description  Stratums.io Shop++
// @author       Tornamic
// @match        https://stratums.io/*
// @icon         data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant        none
// @namespace https://greasyfork.org/users/944755
// ==/UserScript==

(function() {
    'use strict';
    var shopMenu = document.querySelector('#af5f8b9dc6a91367b');
    var hatStoreSel = document.querySelector('#hatStoreSel');
    var accStoreSel = document.querySelector('#accStoreSel');
    shopMenu.style.height = '375px';
    hatStoreSel.style.backgroundColor = 'rgba(0, 0, 0, 0.07)';
    accStoreSel.style.backgroundColor = 'rgba(0, 0, 0, 0.07)';
    shopMenu.style.backgroundColor = 'rgba(0, 0, 0, 0.07)';
    hatStoreSel.textContent = 'by';
    accStoreSel.textContent = 'Tornamic';
    // Your code here...
})();

window.addEventListener('keydown', (e) => {
    if (e.keyCode === 32 && e.target === document.body) {
        e.preventDefault();
    }
});