Add plus Node

Adds a custom node to the specified location on the website

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         Add plus Node
// @namespace    your-namespace
// @version      1.0
// @description  Adds a custom node to the specified location on the website
// @match        https://vanced-youtube.neocities.org/2011/*
// @run-at       document-end
// ==/UserScript==

(function() {
    'use strict';

    // Create the custom node
    var customNode = document.createElement('li');
    customNode.className = 'gbt';
    customNode.innerHTML = '<a onclick="gbar.qs(this)" class="gbzt" id="gb_2" href="http://www.google.com/imghp?hl=en&amp;tab=wi"><span class="gbtb2"></span><span class="gbts">+You</span></a>';

    // Find the target node
    var targetNode = document.querySelector('li.gbt a#gb_1');

    // Insert the custom node above the target node
    if (targetNode && targetNode.parentNode) {
        targetNode.parentNode.insertBefore(customNode, targetNode.parentNode.firstChild);
    }
})();