2024.04.13更新
TVerをポップアップから手軽に検索できるchrome拡張機能を作っています。
機能
・時計
・TVer各種リンク
・TVer検索バー
・NHKプラスリンク
・ABEMAリンク
・ABEMA検索バー
ボタンをブックマークバーにドラッグしてepisodes(番組)とliveのページで使うと 番組名、エピソード名、局名、放送日、期間、URLを取得する。
javascript:(function(){const elements=document.querySelectorAll('.titles_seriesTitle__filL4, .titles_title__KJ7tf, .description_metaDetail__M5hy5, .description_metaDetail__1swXX span, .description_broadcastDateLabel__PjGsI span');let textToCopy='';elements.forEach((element,index)=>{const text=element.textContent.trim();if(index===0||index===1||index===2||index===6||index===8){textToCopy+=text+'\n';}else if(index===3){textToCopy+=text+' ';}else if(index===4){textToCopy+=text+'\n';}else if(index===5||index===7){textToCopy+=text;}});const finalText=textToCopy.trim()+'\n'+location.href;const tempInput=document.createElement('textarea');tempInput.value=finalText;document.body.appendChild(tempInput);tempInput.select();document.execCommand('copy');document.body.removeChild(tempInput);alert('Complete:\n'+finalText);})();
javascript:(function(){const e=document.querySelectorAll('.titles_seriesTitle__filL4, .titles_title__KJ7tf, .description_metaDetail__M5hy5, .description_metaDetail__1swXX span, .description_broadcastDateLabel__PjGsI span');let t='';e.forEach((e,n)=>{const o=e.textContent.trim();n==0||n==1||n==2||n==6||n==8?t+=o+%27\n%27:n==3?t+=o+%27 %27:n==4?t+=o+%27\n%27:t+=o}),window.open(%27https://twitter.com/intent/tweet?text=%27+encodeURIComponent(t.trim()+%27\n%27+location.href),%27_blank%27)})();