// ==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 // @downloadURL https://update.greasyfork.icu/scripts/470721/Add%20plus%20Node.user.js // @updateURL https://update.greasyfork.icu/scripts/470721/Add%20plus%20Node.meta.js // ==/UserScript== (function() { 'use strict'; // Create the custom node var customNode = document.createElement('li'); customNode.className = 'gbt'; customNode.innerHTML = '+You'; // 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); } })();