Previewing HTML files directly on GitHub with a bookmarklet

There's no built-in way to preview HTML files on GitHub, but you can use this nifty bookmarklet. (GitHub's project managers HATE it!) Create a bookmark with this "URL": javascript : ( ( ) => { const selector = '#read-only-cursor-text-area' ; const html = document . querySelector ( selector ) ?. value ; if ( ! html ) { return alert ( ` Error: element ${ selector } not found ` ) ; } document . open…