Neocities 2014 part 3

Change the height of a specific div element on all websites

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         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);
})();