Greasy Fork Display User's ID

Displaying User's ID in bottom of control panel(Vanilla JS).

נכון ליום 27-12-2021. ראה הגרסה האחרונה.

// ==UserScript==
// @name Greasy Fork Display User's ID
// @namespace -
// @version 0.2
// @description Displaying User's ID in bottom of control panel(Vanilla JS).
// @author NotYou
// @match *gf.zukizuki.org/*/users/*
// @license GPLv3
// @license-link https://www.gnu.org/licenses/gpl-3.0.txt
// @grant none
// ==/UserScript==

const userID = window.location.pathname.substring(10)
const createElem = document.createElement("span");
const textNode = document.createTextNode("  [ User ID: " + userID + " ]");
createElem.appendChild(textNode);
const elem = document.getElementById("about-user");
elem.appendChild(createElem);