Greasy Fork is available in English.
在油管一键搜b站同名视频
ของเมื่อวันที่
- // ==UserScript==// @name youtube一键搜bilibili// @namespace http://tampermonkey.net/// @version 0.1// @description 在油管一键搜b站同名视频// @author 王泥巴// @match https://www.youtube.com/*// @grant none// ==/UserScript==(function() {setTimeout(function(){var repTitlevar interval = setInterval(function(){var title = document.querySelector("#container > h1")var titleText = title && title.textContentif (titleText && titleText.length > 1 && repTitle != titleText) {console.log(111111111111111111111111111111111111)console.log(titleText)console.log(titleText.length)var addLink = " <a href='https://search.bilibili.com/all?keyword=" + titleText + "' target='_blank' style='font-size: 1px;'>一键搜B站</a>"title.innerHTML = title.innerHTML + addLinkrepTitle = title.textContent//clearInterval(interval)}}, 500);}, 3000);})();