您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Click on the opening/ending music title to search for the music title on youtube on a new tab.
当前为
// ==UserScript== // @name Search Openings/Endings on Youtube - MAL // @namespace Search_Ops_Ends // @version 0.2 // @description Click on the opening/ending music title to search for the music title on youtube on a new tab. // @author hacker09 // @match https://myanimelist.net/anime/* // @match https://myanimelist.net/manga/* // @icon https://www.google.com/s2/favicons?domain=myanimelist.net // @run-at document-end // ==/UserScript== (function() { 'use strict'; if (document.querySelectorAll('span[class*="theme-song"]').length !== 0) //If there's at least one op/end listed on the page { //Starts the if condition document.querySelectorAll('span[class*="theme-song"]').forEach(function(el) { //For each op/end var title = el.innerText.split(': ')[1].split('(ep')[0].trim(); //Save the op/end title on a variable el.style.cursor = 'pointer'; //Make the op/end title element look like it's clickable el.onclick = function() //When the op/end title is clicked { //Starts the onclick function window.open('https://www.youtube.com/results?search_query=' + title, 'blank'); //Search the music title on youtube on a new tab }; //Finishes the onclick function }); //Finishes the for each condition } //Finishes the if condition })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址