background.js
/**
 * Called when the user clicks the fullscreen button.
 */
Called when the user clicks the fullscreen button.
Called when the user clicks the fullscreen button .
function onFullscreenButtonClicked(tab) {
    if(watchParams == null || watchParams.isEmbed == null
        || watchParams.url == null || watchParams.watchUrl == null) {
        return;
    }
    var newUrl;
    if(watchParams.isEmbed) {
        newUrl = buildYouTubeWatchPageUrl(watchParams.watchUrl, watchParams.listUrl);
    } else {
        newUrl = buildYouTubeEmbedUrl(watchParams.watchUrl, watchParams.listUrl);
    }
    chrome.tabs.update(tab.id, {url: newUrl});
}
function onFullscreenButtonClicked ( tab ) { if ( watchParams == null || watchParams . isEmbed == null || watchParams . url == null || watchParams . watchUrl == null ) { return ; } var newUrl ; if ( watchParams . isEmbed ) { newUrl = buildYouTubeWatchPageUrl ( watchParams . watchUrl , watchParams . listUrl ) ; } else { newUrl = buildYouTubeEmbedUrl ( watchParams . watchUrl , watchParams . listUrl ) ; } chrome . tabs . update ( tab . id , { url : newUrl } ) ; }
Called when the user clicks the fullscreen button.
Called when the user clicks the fullscreen button .