您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Replaces the "Videos" navigation tab with "YouTube" so you can easily go to YouTube with your Google search query
当前为
// ==UserScript== // @name Google - Change "Videos" tab to "YouTube" // @namespace http://userscripts.org/users/23652 // @description Replaces the "Videos" navigation tab with "YouTube" so you can easily go to YouTube with your Google search query // @include http://www.google.com/search?*q=* // @include https://www.google.com/search?*q=* // @copyright JoeSimmons // @version 1.0.0 // @license GPL version 3 or any later version; http://www.gnu.org/copyleft/gpl.html // @grant GM_addStyle // ==/UserScript== +function () { var videosLink = document.querySelector('#hdtb_msb .hdtb_mitem a[href*="&tbm=vid"]'); // make sure the page is not in a frame // and if there is a "Videos" link if (window.frameElement || window !== window.top || !videosLink) { return; } // change the link's text videosLink.firstChild.data = 'YouTube'; // change the link's url videosLink.href = 'https://www.youtube.com/results?search_query=' + location.href.match(/[?&]?q=([^&]*)/)[1]; }();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址