Customize Website

x
Color Swatches
Theme
Font Size
100%

YouTube AI Note Taker

100% FREE

Instantly take notes from any YouTube video with AI. Customize note types, writing style, and more, then easily edit or share your AI-generated notes.

');w.document.close();w.document.body.appendChild(w.document.importNode($clone[0],true));setTimeout(function(){w.focus();w.print();},250);} function downloadPdf($report){if(pdfBusy){setStatus($report,'A PDF is already being prepared.',false);return;}pdfBusy=true;var $button=$report.find('.ytav-download-pdf').first(),finished=false;$button.prop('disabled',true).attr('aria-busy','true');document.body.classList.add('ytav-pdf-exporting');setStatus($report,'Preparing PDF…',false);function finish(error){if(finished)return;finished=true;clearPdfArtifacts();pdfBusy=false;$button.prop('disabled',false).removeAttr('aria-busy');if(error)showPdfFailure($report,error);else setStatus($report,'PDF downloaded.',false);}loadPdfLibrary().then(function(){var $clone=printableClone($report);var worker=window.html2pdf().set({margin:9,filename:reportName($report,'pdf'),pagebreak:{mode:['css','legacy']},image:{type:'jpeg',quality:.94},html2canvas:{scale:1.25,useCORS:true,allowTaint:false,backgroundColor:'#ffffff',logging:false},jsPDF:{unit:'mm',format:'a4',orientation:'portrait'}}).from($clone[0]).save();var timeout=new Promise(function(resolve,reject){setTimeout(function(){reject(new Error('rendering timed out'));},60000);});return Promise.race([Promise.resolve(worker),timeout]);}).then(function(){finish(null);}).catch(function(error){finish(error||new Error('unknown rendering error'));});} $(document).on('click','.ytav-timestamp',function(e){e.preventDefault();var $report=$(this).closest('.ytav-notes-results');if($report.hasClass('ytav-editing'))return;var seconds=parseInt($(this).attr('data-seconds'),10);if(isNaN(seconds))seconds=timeToSeconds($(this).text());var videoId=$report.attr('data-video-id');if(!/^[a-zA-Z0-9_-]{11}$/.test(videoId||''))return;$report.find('.ytav-video-wrap iframe').attr('src','https://www.youtube-nocookie.com/embed/'+videoId+'?start='+seconds+'&autoplay=1&rel=0');$('html,body').animate({scrollTop:$report.find('.ytav-video-wrap').offset().top-80},250);}); $(document).on('click','.ytav-edit-notes',function(){startEdit($(this).closest('.ytav-notes-results'));}); $(document).on('click','.ytav-save-edits',function(){exitEdit($(this).closest('.ytav-notes-results'),true);}); $(document).on('click','.ytav-cancel-edits',function(){exitEdit($(this).closest('.ytav-notes-results'),false);}); $(document).on('click','.ytav-remove-section',function(e){e.preventDefault();e.stopPropagation();$(this).closest('.ytav-editable-block').remove();}); $(document).on('click','.ytav-add-section',function(){var $report=$(this).closest('.ytav-notes-results'),$block=$('

New Section

Start typing your notes here.

'),$action=$report.find('.ytav-action-panel').first();if($action.length)$block.insertBefore($action);else $report.find('.ytav-note-content').append($block);$block.trigger('focus');}); $(document).on('click','.ytav-edit-ai',function(){var $report=$(this).closest('.ytav-notes-results');if($report.hasClass('ytav-editing'))exitEdit($report,true);openAiModal($report);}); $(document).on('click','.ytav-ai-cancel',closeAiModal); $(document).on('click','#ytav-ai-modal',function(e){if(e.target===this)closeAiModal();}); $(document).on('keydown',function(e){if(e.key==='Escape'&&$('#ytav-ai-modal').hasClass('active'))closeAiModal();}); $(document).on('click','.ytav-ai-apply',function(){var $button=$(this),$modal=$('#ytav-ai-modal'),$report=$modal.data('ytav-report'),instruction=compact($('#ytav-ai-instruction').val());if(!$report||!instruction){$('#ytav-ai-instruction').trigger('focus');return;}$button.prop('disabled',true).text('Editing…');var sources=syncSources($report);$.ajax({type:'POST',url:window.location.origin+'/wp-admin/admin-ajax.php',dataType:'json',timeout:180000,data:{action:'ytav_notes_ai_edit',nonce:nonce(),current_notes:sources.markdown,edit_instruction:instruction,video_id:$report.attr('data-video-id'),video_title:$report.attr('data-video-title'),video_channel:$report.attr('data-video-channel'),video_thumbnail:$report.attr('data-video-thumbnail'),note_style:$report.attr('data-note-style'),writing_style:$report.attr('data-writing-style'),detail_level:$report.attr('data-detail-level'),timestamp_reference:$report.attr('data-timestamp-reference')}}).done(function(r){if(!r||!r.success||!r.html){setStatus($report,(r&&r.error)||'Could not edit the notes with AI.',true);return;}var $newReport=$(r.html);$report.replaceWith($newReport);enhanceNotes(resultInner||$(document));setStatus($newReport,'AI edit applied. Review the result before exporting or sharing.',false);closeAiModal();}).fail(function(){setStatus($report,'Could not edit the notes with AI. Please try again.',true);}).always(function(){$button.prop('disabled',false).text('Apply AI edit');});}); $(document).on('click','.ytav-copy-md,.ytav-copy-text',function(){var $button=$(this),$report=$button.closest('.ytav-notes-results'),sources=syncSources($report),isText=$button.hasClass('ytav-copy-text');copyValue(isText?sources.text:sources.markdown,function(ok){setStatus($report,ok?(isText?'Text copied.':'Markdown copied.'):'Copy failed. Please try again.',!ok);});}); $(document).on('click','.ytav-download-md,.ytav-download-txt',function(){var $button=$(this),$report=$button.closest('.ytav-notes-results'),sources=syncSources($report),isTxt=$button.hasClass('ytav-download-txt');downloadBlob(isTxt?sources.text:sources.markdown,isTxt?'text/plain;charset=utf-8':'text/markdown;charset=utf-8',reportName($report,isTxt?'txt':'md'));setStatus($report,(isTxt?'TXT':'Markdown')+' downloaded.',false);}); $(document).on('click','.ytav-download-pdf',function(){downloadPdf($(this).closest('.ytav-notes-results'));}); $(document).on('click','.ytav-print-pdf',function(){printReport($(this).closest('.ytav-notes-results'));}); $(document).on('click','.ytav-share-notes',function(){var $button=$(this),$report=$button.closest('.ytav-notes-results');if($report.hasClass('ytav-editing'))exitEdit($report,true);syncSources($report);var $clone=exportClone($report);$button.prop('disabled',true).attr('aria-busy','true');setStatus($report,'Creating a shareable link…',false);$.ajax({type:'POST',url:window.location.origin+'/wp-admin/admin-ajax.php',dataType:'json',timeout:30000,data:{action:'ytav_notes_share_create',nonce:nonce(),video_id:$report.attr('data-video-id'),video_title:$report.attr('data-video-title'),video_channel:$report.attr('data-video-channel'),video_thumbnail:$report.attr('data-video-thumbnail'),note_style:$report.attr('data-note-style'),writing_style:$report.attr('data-writing-style'),detail_level:$report.attr('data-detail-level'),timestamp_reference:$report.attr('data-timestamp-reference'),report_html:$clone.prop('outerHTML')}}).done(function(r){if(!r||!r.success||!r.token){setStatus($report,(r&&r.error)||'Could not create the share link.',true);return;}var shareLocation;try{shareLocation=new URL(window.location.href);shareLocation.searchParams.set('yt_notes_share',r.token);shareLocation.hash='';}catch(e){shareLocation={href:window.location.origin+window.location.pathname+'?yt_notes_share='+encodeURIComponent(r.token)};}var shareUrl=shareLocation.href;copyValue(shareUrl,function(copied){var $status=$report.find('.ytav-action-status');$status.removeClass('error').addClass('active').empty().append(document.createTextNode(copied?'Share link copied. ':'Share link created. ')).append($('',{href:shareUrl,target:'_blank',rel:'noopener noreferrer',text:'Open shared notes'})).append(document.createTextNode(' — expires in 30 days.'));});}).fail(function(xhr,status){setStatus($report,status==='timeout'?'Sharing timed out. Please try again.':'Could not create the share link. Please try again.',true);}).always(function(){$button.prop('disabled',false).removeAttr('aria-busy');});}); $btn.on('click',function(e){e.preventDefault();if(ajaxReq)ajaxReq.abort();$('.field-error,.result-container').remove();var videoUrl=compact($url.val());if(!videoUrl){$urlGroup.append("Please enter a YouTube video URL.");return;}var noteStyle=fieldValue($noteStyle,'study',['study','meeting','creator','research']),writingStyle=fieldValue($writingStyle,'clear_concise',['clear_concise','academic','conversational','professional','bullet_points']),detailLevel=fieldValue($detailLevel,'normal',['normal','detailed','key_moments']),timestampReference=fieldValue($timestampReference,'yes',['yes','no']);resultBox=$('
');resultInner=$('
');resultBox.append(progressBlock()).append(resultInner);$('.tool-box').after(resultBox);$btn.prop('disabled',true).attr('aria-busy','true');startProgress();$('html,body').animate({scrollTop:resultBox.offset().top-80},250);ajaxReq=$.ajax({type:'POST',url:window.location.origin+'/wp-admin/admin-ajax.php',timeout:180000,data:{action:'yt_ai_note_taker',nonce:nonce(),form_fields:{url:videoUrl,note_style:noteStyle,writing_style:writingStyle,detail_level:detailLevel,timestamp_reference:timestampReference},'cf-turnstile-response':$('[name="cf-turnstile-response"]').val()||''},success:function(raw){stopProgress();if(typeof raw==='string'&&raw.indexOf('#ERR-')!==-1){showError(errorText(raw));return;}resultInner.html(raw).hide().fadeIn(300);enhanceNotes(resultInner);$('html,body').animate({scrollTop:resultInner.offset().top-80},250);},error:function(xhr,status){if(status!=='abort')showError(status==='timeout'?'Request timed out. Try again with a shorter video.':'Network error. Please try again.');},complete:function(){ajaxReq=null;$btn.prop('disabled',false).removeAttr('aria-busy');if(typeof turnstile!=='undefined')try{turnstile.reset();}catch(e){}}});}); $url.on('keypress',function(e){if(e.which===13){e.preventDefault();$btn.trigger('click');}}); $url.on('blur',function(){var value=compact($url.val());if(value)fetchVideoTitle(value);}); $url.on('input',function(){titleLookupToken++;$('#youtube-overlay').remove();$url.removeClass('yt_url_hidden');}); var sharedToken='';try{sharedToken=(new URLSearchParams(window.location.search)).get('yt_notes_share')||'';}catch(e){} if(/^[a-zA-Z0-9]{40}$/.test(sharedToken)){$('.result-container').remove();resultBox=$('
');resultInner=$('
');resultBox.append('
Loading shared notes…
This link is available for 30 days from creation.
').append(resultInner);$('.tool-box').after(resultBox);$.ajax({type:'POST',url:window.location.origin+'/wp-admin/admin-ajax.php',dataType:'json',timeout:30000,data:{action:'ytav_notes_share_get',token:sharedToken}}).done(function(r){$('.ytav-progress').remove();if(!r||!r.success||!r.html){showError((r&&r.error)||'These shared notes are unavailable.');return;}resultInner.html(r.html);enhanceNotes(resultInner,r.video_id,r.meta);$('html,body').animate({scrollTop:resultBox.offset().top-80},250);}).fail(function(xhr,status){$('.ytav-progress').remove();showError(status==='timeout'?'Loading the shared notes timed out. Please try again.':'Could not load these shared notes. Please try again.');});} });

Tool Comments