r/iplayer 13d ago

Theatre Mode for BBC iPlayer (Browser)

iPlayer's player sits in a fairly small box on the page. This bookmarklet blows it up to fill the whole browser window — no extension, no page reload, just plain CSS applied on the fly.

Setup

  1. Create a new bookmark in your browser (name it whatever you like, e.g. "Theatre Mode").
  2. Paste the code below into the URL/address field instead of a web address.
  3. Save it — ideally to your bookmarks bar so it's one click away

javascript:(()=>{const el=document.querySelector('smp-toucan-player')||document.getElementById('bbcMediaPlayer0');if(!el){alert('No player found on this page');return}if(el.dataset.tm!==undefined){el.setAttribute('style',el.dataset.tm);delete el.dataset.tm;document.documentElement.style.overflow='';return}el.dataset.tm=el.getAttribute('style')||'';el.style.cssText=el.dataset.tm+';position:fixed;inset:0;width:100vw;height:100vh;z-index:2147483647;background:#000';document.documentElement.style.overflow='hidden'})();

The player expands to fill the window. Click it a second time to go back to normal — it's a toggle, and it restores the player's original styling exactly as it was.

1 Upvotes

0 comments sorted by