Neocities 2014 part 3

Change the height of a specific div element on all websites

// ==UserScript==
// @name         Neocities 2014 part 3
// @namespace    *
// @version      1.0
// @description  Change the height of a specific div element on all websites
// @match        *://*/*
// @grant        none
// @license      MIT
// ==/UserScript==

(function() {
    'use strict';

    // Function to change the element height
    function changeElementHeight() {
        const element = document.querySelector('div.gsc-positioningWrapper');
        if (element) {
            element.style.height = '20px';
        }
    }

    // Wait for the page to load and then change the element height
    window.addEventListener('load', changeElementHeight);
})();