您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
try to take over the world!
当前为
// ==UserScript== // @name embyLaunchPotplayer // @namespace http://tampermonkey.net/ // @version 0.3 // @description try to take over the world! // @author You // @include *:* // @grant none // @require https://cdn.bootcss.com/jquery/1.12.4/jquery.min.js // ==/UserScript== new MutationObserver(function(mutations) { if(document.querySelector('.mainDetailButtons')){ var mainDetailButtons = $('.mainDetailButtons')[0]; if(mainDetailButtons){ var html = mainDetailButtons.innerHTML; mainDetailButtons.innerHTML = html+'<button is="emby-button" id="potPlayer" type="button" class="detailButton detailButton-hidemobile emby-button" > <div class="detailButton-content"> <i class="md-icon detailButton-icon"></i> <div class="detailButton-text">PotPlayer</div> </div> </button>'; this.disconnect(); // disconnect the observer } } }).observe(document, {childList: true, subtree: true}); $(document).on('click', '#potPlayer', function(e) { var b = $("span.mediaInfoAttributeLabel:contains('路径')").siblings('span')[0]; var url="emby://"+b.innerHTML; window.location.href=url; }) // var b = $("span.mediaInfoAttributeLabel:contains('路径')").siblings('span')[0]; // var url="emby://"+b.innerHTML; // console.log(url); // window.location.href=url;
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址