embyLaunchPotplayer

try to take over the world!

当前为 2020-09-11 提交的版本,查看 最新版本

// ==UserScript==
// @name         embyLaunchPotplayer
// @namespace    http://tampermonkey.net/
// @version      0.2
// @description  try to take over the world!
// @author       You
// @include	 *:8096*
// @grant        none
// @run-at context-menu
// @require      https://cdn.bootcss.com/jquery/1.12.4/jquery.min.js
// ==/UserScript==


//  new MutationObserver(function(mutations) {
//     if(document.querySelector('.mainDetailButtons')){
//         var mainDetailButtons = document.querySelector('.mainDetailButtons');
//         if(mainDetailButtons){
//               var html = mainDetailButtons.innerHTML;
//               mainDetailButtons.innerHTML = html+'<button is="emby-button" id="potPlayer" type="button" class="detailButton detailButton-hidemobile emby-button" data-mode="play"> <div class="detailButton-content"> <i class="md-icon detailButton-icon"></i>  <div class="detailButton-text playButtonText">PotPlayer</div> </div> </button>';
//            this.disconnect(); // disconnect the observer
//         }
//     }
//  }).observe(document, {childList: true, subtree: true});


var b = $("span.mediaInfoAttributeLabel:contains('路径')").siblings('span')[0];
    var url="emby://"+b.innerHTML;
    console.log(url);
    window.location.href=url;

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址