Scripts/BrowserMonitor.js
//On Youtube page & video playing without timestamp
On Youtube page & video playing without timestamp
On Youtube page & video playing without timestamp
function tabUpdated(tabId, changeInfo, tabInfo){
	if (changeInfo.url && checkUrl(changeInfo.url) )
	{		
		currentTabId = tabId;
		browser.runtime.sendMessage({command: "update headings", id: tabId, newtitle: changeInfo.title});		
	}
}
function tabUpdated ( tabId , changeInfo , tabInfo ) { if ( changeInfo . url && checkUrl ( changeInfo . url ) ) { currentTabId = tabId ; browser . runtime . sendMessage ( { command : "update headings" , id : tabId , newtitle : changeInfo . title } ) ; } }
On Youtube page & video playing without timestamp
On Youtube page & video playing without timestamp
//Check if a video is being watched //Update current TabId for hotkeys for use a fallback //Send update requests - ToDo > Should only send if popup is active otherwise no receiving end to connection