(function(){"use strict";function e(e){chrome.runtime.sendMessage({type:"createTab",url:e})}window.addEventListener("message",(a=>{const{data:t}=a;switch(t.action){case"getCaptionFromUrl":e(t?.data?.url);break}}));const a=async e=>{switch(e.type){case"sendYueTabData":console.log("%c chromeLister -> 'sendYueTabData'","color: red; background: yellow; font-size: 20px;",e),window.postMessage(e.data,"*");break;default:break}return!0};window.chrome.runtime.onMessage.addListener(a)})();