text: (()=>{return(i,e)=>{const c=`www.biliplus.com`;const l=["bilibili.com/video/","bilibili.com/bangumi/play","bilibili.com/bangumi/media","space.bilibili.com"];return{widget:{condition:()=>{return l.some(i=>document.URL.includes(i))},content:`\n<a class="gui-settings-flat-button" id="biliplus-redirect">\n<i class="icon-biliplus"></i>\n<span>转到BiliPlus</span>\n</a>`,success:()=>{const i=document.querySelector("#biliplus-redirect");let e;if(location.host==="space.bilibili.com"){e=document.URL.replace("space.bilibili.com/",`${c}/space/`)}else if(document.URL.includes("/bangumi/")){const i=unsafeWindow.aid||document.querySelector(".av-link,.info-sec-av").innerText.replace(/[aAvV]/g,"");e=`https://${c}/video/av${i}/`}else{e=document.URL.replace(window.location.host,c)}if(document.URL!==e){i.href=e}else{i.disabled=true}}}}}})();