您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Add custom nodes to YouTube header
// ==UserScript== // @name Add calendar add drive links // @namespace http://tampermonkey.net/ // @version 1.0 // @description Add custom nodes to YouTube header // @author Your Name // @match https://vanced-youtube.neocities.org/2011/ // @grant none // ==/UserScript== (function() { 'use strict'; // Create the first node var driveNode = document.createElement('li'); driveNode.className = 'gbt'; driveNode.innerHTML = '<a class="gbzt" id="gb_23" onclick="gbar.qs(this);gbar.logger.il(1,{t:23})" href="http://mail.google.com/mail/?hl=en&tab=wm"><span class="gbtb2"></span><span class="gbts">Drive</span></a>'; // Create the second node var calendarNode = document.createElement('li'); calendarNode.className = 'gbt'; calendarNode.innerHTML = '<a class="gbzt" id="gb_23" onclick="gbar.qs(this);gbar.logger.il(1,{t:23})" href="http://mail.google.com/mail/?hl=en&tab=wm"><span class="gbtb2"></span><span class="gbts">Calendar</span></a>'; // Get the parent node to insert the new nodes var parentNode = document.querySelector('#gbz'); if (parentNode) { // Append the new nodes to the parent node parentNode.appendChild(driveNode); parentNode.appendChild(calendarNode); } })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址