您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Middle clicking the search on youtube opens the results in a new tab
当前为
// ==UserScript== // @name Youtube Middle Click Search // @version 1.0 // @description Middle clicking the search on youtube opens the results in a new tab // @include http*://www.youtube.com* // @namespace https://greatest.deepsurf.us/users/649 // ==/UserScript== document.querySelectorAll("#masthead-search button")[0].setAttribute("onclick", "if (_gel('masthead-search-term').value == '') return false;var evt = window.event || arguments.callee.caller.arguments[0];if (evt.which == 2) document.getElementById('masthead-search').setAttribute('target', '_blank');_gel('masthead-search').submit();return false;;return true");